UNPKG

@sitecore/sc-contenthub-webclient-sdk

Version:

Sitecore Content Hub WebClient SDK.

59 lines 2.56 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"; import { OptionListType } from "../../contracts/base/option-lists/option-list-type"; import Link from "../../link"; import Resource from "../resource"; import OptionListValueResource from "./option-list-value-resource"; let OptionListResource = class OptionListResource extends Resource { }; __decorate([ JsonProperty("name"), __metadata("design:type", String) ], OptionListResource.prototype, "name", void 0); __decorate([ JsonProperty("labels"), __metadata("design:type", Object) ], OptionListResource.prototype, "labels", void 0); __decorate([ JsonProperty("type"), __metadata("design:type", String) ], OptionListResource.prototype, "type", void 0); __decorate([ JsonProperty("is_system_owned"), __metadata("design:type", Boolean) ], OptionListResource.prototype, "isSystemOwned", void 0); __decorate([ JsonProperty("values"), JsonElementType(OptionListValueResource), __metadata("design:type", Array) ], OptionListResource.prototype, "values", void 0); __decorate([ JsonProperty("created_on"), __metadata("design:type", Date) ], OptionListResource.prototype, "createdOn", void 0); __decorate([ JsonProperty("modified_on"), __metadata("design:type", Date) ], OptionListResource.prototype, "modifiedOn", void 0); __decorate([ JsonProperty("created_by"), __metadata("design:type", Link) ], OptionListResource.prototype, "createdBy", void 0); __decorate([ JsonProperty("modified_by"), __metadata("design:type", Link) ], OptionListResource.prototype, "modifiedBy", void 0); OptionListResource = __decorate([ JsonObject() ], OptionListResource); export default OptionListResource; export { OptionListResource }; //# sourceMappingURL=option-list-resource.js.map