UNPKG

@sitecore/sc-contenthub-webclient-sdk

Version:

Sitecore Content Hub WebClient SDK.

67 lines 2.9 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 { MetricOptionRequestResource } from "./metric-option-request-resource"; let AggregationRequestResource = class AggregationRequestResource { constructor(init) { this.size = 10; this.optionList = ""; this.children = []; this.includeMissing = false; Object.assign(this, init); } }; __decorate([ JsonProperty("name"), __metadata("design:type", String) ], AggregationRequestResource.prototype, "name", void 0); __decorate([ JsonProperty("field"), __metadata("design:type", String) ], AggregationRequestResource.prototype, "field", void 0); __decorate([ JsonProperty("size"), __metadata("design:type", Number) ], AggregationRequestResource.prototype, "size", void 0); __decorate([ JsonProperty("datasource"), __metadata("design:type", String) ], AggregationRequestResource.prototype, "optionList", void 0); __decorate([ JsonProperty("children"), JsonElementType(AggregationRequestResource), __metadata("design:type", Array) ], AggregationRequestResource.prototype, "children", void 0); __decorate([ JsonProperty("metric_option"), __metadata("design:type", MetricOptionRequestResource) ], AggregationRequestResource.prototype, "metricOption", void 0); __decorate([ JsonProperty("type"), __metadata("design:type", String) ], AggregationRequestResource.prototype, "requestedAggregationType", void 0); __decorate([ JsonProperty("interval"), __metadata("design:type", String) ], AggregationRequestResource.prototype, "interval", void 0); __decorate([ JsonProperty("format"), __metadata("design:type", String) ], AggregationRequestResource.prototype, "format", void 0); __decorate([ JsonProperty("include_missing"), __metadata("design:type", Boolean) ], AggregationRequestResource.prototype, "includeMissing", void 0); AggregationRequestResource = __decorate([ JsonObject(), __metadata("design:paramtypes", [Object]) ], AggregationRequestResource); export { AggregationRequestResource }; //# sourceMappingURL=aggregation-request-resource.js.map