UNPKG

@sitecore/sc-contenthub-webclient-sdk

Version:

Sitecore Content Hub WebClient SDK.

57 lines 2.42 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 { FieldFilterRequestResource } from "./field-filter-request-resource"; let AllFacetsRequest = class AllFacetsRequest { constructor(init) { this.culture = "Invariant"; this.filters = []; Object.assign(this, init); } }; __decorate([ JsonProperty("facetField"), __metadata("design:type", String) ], AllFacetsRequest.prototype, "facetField", void 0); __decorate([ JsonProperty("query"), __metadata("design:type", String) ], AllFacetsRequest.prototype, "query", void 0); __decorate([ JsonProperty("searchConfigurationName"), __metadata("design:type", String) ], AllFacetsRequest.prototype, "searchConfigurationName", void 0); __decorate([ JsonProperty("culture"), __metadata("design:type", String) ], AllFacetsRequest.prototype, "culture", void 0); __decorate([ JsonProperty("take_user_settings"), __metadata("design:type", Boolean) ], AllFacetsRequest.prototype, "takeUserSettings", void 0); __decorate([ JsonProperty("component"), __metadata("design:type", Number) ], AllFacetsRequest.prototype, "componentId", void 0); __decorate([ JsonProperty("l10n"), __metadata("design:type", Boolean) ], AllFacetsRequest.prototype, "l10n", void 0); __decorate([ JsonProperty("filters"), JsonElementType(FieldFilterRequestResource), __metadata("design:type", Array) ], AllFacetsRequest.prototype, "filters", void 0); AllFacetsRequest = __decorate([ JsonObject(), __metadata("design:paramtypes", [Object]) ], AllFacetsRequest); export { AllFacetsRequest }; //# sourceMappingURL=all-facets-request.js.map