UNPKG

@sitecore/sc-contenthub-webclient-sdk

Version:

Sitecore Content Hub WebClient SDK.

84 lines 3.2 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, JsonType } from "ta-json"; import Link from "../../link"; import Resource from "../resource"; import { MemberPolicyResource } from "./member-policy-resource"; import { RuleResource } from "./rule-resource"; /** * Policy resource. */ let PolicyResource = class PolicyResource extends Resource { constructor() { super(...arguments); /** * Non null collection of rules for the policy. * * @remarks * If any of the rules apply in the specific case the policy is triggered (i.e. rules are combined with "OR" logical * operator). */ this.rules = []; /** * Non null collection of the member security policies. */ this.memberSecurity = []; /** * Non null collection of the member group security policies. */ this.memberGroupSecurity = []; } }; __decorate([ JsonProperty("rules"), JsonElementType(RuleResource), __metadata("design:type", Array) ], PolicyResource.prototype, "rules", void 0); __decorate([ JsonProperty("member_security"), JsonElementType(MemberPolicyResource), __metadata("design:type", Array) ], PolicyResource.prototype, "memberSecurity", void 0); __decorate([ JsonProperty("membergroup_security"), JsonElementType(MemberPolicyResource), __metadata("design:type", Array) ], PolicyResource.prototype, "memberGroupSecurity", void 0); __decorate([ JsonProperty("user"), JsonType(Link), __metadata("design:type", Object) ], PolicyResource.prototype, "user", void 0); __decorate([ JsonProperty("usergroup"), JsonType(Link), __metadata("design:type", Object) ], PolicyResource.prototype, "userGroup", void 0); __decorate([ JsonProperty("created_by"), __metadata("design:type", Link) ], PolicyResource.prototype, "createdBy", void 0); __decorate([ JsonProperty("created_on"), __metadata("design:type", Date) ], PolicyResource.prototype, "createdOn", void 0); __decorate([ JsonProperty("modified_by"), __metadata("design:type", Link) ], PolicyResource.prototype, "modifiedBy", void 0); __decorate([ JsonProperty("modified_on"), __metadata("design:type", Date) ], PolicyResource.prototype, "modifiedOn", void 0); PolicyResource = __decorate([ JsonObject() ], PolicyResource); export { PolicyResource }; //# sourceMappingURL=policy-resource.js.map