UNPKG

@sitecore/sc-contenthub-webclient-sdk

Version:

Sitecore Content Hub WebClient SDK.

91 lines 4.25 kB
"use strict"; 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); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.UsageRightsConfiguration = exports.UsageRightsRelation = exports.UsageRightsProperty = void 0; const ta_json_1 = require("ta-json"); let UsageRightsProperty = class UsageRightsProperty { }; exports.UsageRightsProperty = UsageRightsProperty; __decorate([ (0, ta_json_1.JsonProperty)("key"), __metadata("design:type", String) ], UsageRightsProperty.prototype, "key", void 0); __decorate([ (0, ta_json_1.JsonProperty)("rights_profile_property"), __metadata("design:type", String) ], UsageRightsProperty.prototype, "rightsProfileLinkProperty", void 0); __decorate([ (0, ta_json_1.JsonProperty)("usage_rights_request_property"), __metadata("design:type", String) ], UsageRightsProperty.prototype, "usageRightsRequestProperty", void 0); exports.UsageRightsProperty = UsageRightsProperty = __decorate([ (0, ta_json_1.JsonObject)() ], UsageRightsProperty); let UsageRightsRelation = class UsageRightsRelation { }; exports.UsageRightsRelation = UsageRightsRelation; __decorate([ (0, ta_json_1.JsonProperty)("key"), __metadata("design:type", String) ], UsageRightsRelation.prototype, "key", void 0); __decorate([ (0, ta_json_1.JsonProperty)("rights_profile_link_relation"), __metadata("design:type", String) ], UsageRightsRelation.prototype, "rightsProfileLinkRelation", void 0); __decorate([ (0, ta_json_1.JsonProperty)("usage_rights_request_link_relation"), __metadata("design:type", String) ], UsageRightsRelation.prototype, "usageRightsRequestLinkRelation", void 0); __decorate([ (0, ta_json_1.JsonProperty)("hierarchy_relation"), __metadata("design:type", String) ], UsageRightsRelation.prototype, "hierarchyRelation", void 0); __decorate([ (0, ta_json_1.JsonProperty)("role"), __metadata("design:type", String) ], UsageRightsRelation.prototype, "role", void 0); exports.UsageRightsRelation = UsageRightsRelation = __decorate([ (0, ta_json_1.JsonObject)() ], 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; } }; exports.UsageRightsConfiguration = UsageRightsConfiguration; __decorate([ (0, ta_json_1.JsonProperty)("relations"), (0, ta_json_1.JsonElementType)(UsageRightsRelation), __metadata("design:type", Array) ], UsageRightsConfiguration.prototype, "relations", void 0); __decorate([ (0, ta_json_1.JsonProperty)("properties"), (0, ta_json_1.JsonElementType)(UsageRightsProperty), __metadata("design:type", Array) ], UsageRightsConfiguration.prototype, "properties", void 0); __decorate([ (0, ta_json_1.JsonProperty)("match_strategy"), __metadata("design:type", String) ], UsageRightsConfiguration.prototype, "matchStrategy", void 0); __decorate([ (0, ta_json_1.JsonProperty)("maximum_complexity"), __metadata("design:type", Number) ], UsageRightsConfiguration.prototype, "maximumComplexity", void 0); exports.UsageRightsConfiguration = UsageRightsConfiguration = __decorate([ (0, ta_json_1.JsonObject)() ], UsageRightsConfiguration); //# sourceMappingURL=usage-rights-configuration.js.map