UNPKG

@jorsek/ezd-client

Version:
234 lines 7.54 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; }; Object.defineProperty(exports, "__esModule", { value: true }); const class_transformer_1 = require("class-transformer"); const class_validator_1 = require("class-validator"); class ISection { } __decorate([ class_validator_1.IsString() ], ISection.prototype, "title", void 0); __decorate([ class_validator_1.IsString(), class_validator_1.IsOptional() ], ISection.prototype, "shortdesc", void 0); __decorate([ class_validator_1.IsString(), class_validator_1.IsOptional() ], ISection.prototype, "thumbnail", void 0); __decorate([ class_validator_1.IsString() ], ISection.prototype, "href", void 0); __decorate([ class_validator_1.ValidateNested(), class_transformer_1.Type(() => ISection), class_validator_1.IsArray(), class_validator_1.IsOptional() ], ISection.prototype, "children", void 0); exports.ISection = ISection; class INavTree { } __decorate([ class_validator_1.IsString() ], INavTree.prototype, "title", void 0); __decorate([ class_validator_1.IsString() ], INavTree.prototype, "href", void 0); __decorate([ class_validator_1.IsString(), class_validator_1.IsOptional() ], INavTree.prototype, "shortdesc", void 0); __decorate([ class_validator_1.IsString(), class_validator_1.IsOptional() ], INavTree.prototype, "thumbnail", void 0); __decorate([ class_validator_1.ValidateNested(), class_transformer_1.Type(() => INavTree), class_validator_1.IsArray(), class_validator_1.IsOptional() ], INavTree.prototype, "children", void 0); exports.INavTree = INavTree; class INavLink { } __decorate([ class_validator_1.IsString() ], INavLink.prototype, "href", void 0); __decorate([ class_validator_1.IsString() ], INavLink.prototype, "title", void 0); exports.INavLink = INavLink; class IMetaTaxonomy { } exports.IMetaTaxonomy = IMetaTaxonomy; class IMetaDateTime { } exports.IMetaDateTime = IMetaDateTime; class IMetaLabel { } exports.IMetaLabel = IMetaLabel; class IMetaTextSingleLine { } exports.IMetaTextSingleLine = IMetaTextSingleLine; class IMetadata { } exports.IMetadata = IMetadata; class IPageContent { } __decorate([ class_validator_1.IsString() ], IPageContent.prototype, "content", void 0); __decorate([ class_validator_1.IsString() ], IPageContent.prototype, "href", void 0); __decorate([ class_validator_1.ValidateNested(), class_transformer_1.Type(() => INavLink), class_validator_1.IsArray() ], IPageContent.prototype, "breadcrumbs", void 0); __decorate([ class_validator_1.ValidateNested(), class_transformer_1.Type(() => INavLink), class_validator_1.IsArray() ], IPageContent.prototype, "versions", void 0); __decorate([ class_validator_1.IsString() ], IPageContent.prototype, "current_version", void 0); __decorate([ class_validator_1.ValidateNested(), class_transformer_1.Type(() => INavLink), class_validator_1.IsArray() ], IPageContent.prototype, "children", void 0); __decorate([ class_validator_1.ValidateNested(), class_transformer_1.Type(() => INavLink) ], IPageContent.prototype, "parent", void 0); __decorate([ class_validator_1.ValidateNested(), class_transformer_1.Type(() => INavLink), class_validator_1.IsArray() ], IPageContent.prototype, "relatedLinks", void 0); __decorate([ class_validator_1.IsOptional(), class_validator_1.IsString() ], IPageContent.prototype, "title", void 0); __decorate([ class_validator_1.IsOptional(), class_validator_1.IsString() ], IPageContent.prototype, "shortdesc", void 0); __decorate([ class_validator_1.ValidateNested(), class_transformer_1.Type(() => INavLink) ], IPageContent.prototype, "previous", void 0); __decorate([ class_validator_1.ValidateNested(), class_transformer_1.Type(() => INavLink) ], IPageContent.prototype, "next", void 0); __decorate([ class_validator_1.ValidateNested(), class_transformer_1.Type(() => IMetadata) ], IPageContent.prototype, "standardMetadata", void 0); __decorate([ class_validator_1.ValidateNested(), class_transformer_1.Type(() => IMetadata) ], IPageContent.prototype, "customMetadata", void 0); exports.IPageContent = IPageContent; class API_Config { } __decorate([ class_transformer_1.Type(() => API_SearchConfig) ], API_Config.prototype, "search", void 0); __decorate([ class_validator_1.ValidateNested(), class_transformer_1.Type(() => API_Template), class_validator_1.IsArray() ], API_Config.prototype, "templates", void 0); exports.API_Config = API_Config; class API_Template { } __decorate([ class_validator_1.IsString() ], API_Template.prototype, "title", void 0); __decorate([ class_validator_1.IsString() ], API_Template.prototype, "path", void 0); __decorate([ class_validator_1.IsString() ], API_Template.prototype, "image", void 0); exports.API_Template = API_Template; class API_SearchConfig { } __decorate([ class_validator_1.ValidateNested(), class_transformer_1.Type(() => IFilter), class_validator_1.IsArray(), class_validator_1.IsOptional() ], API_SearchConfig.prototype, "filters", void 0); __decorate([ class_validator_1.IsNumber() ], API_SearchConfig.prototype, "results_per_page", void 0); __decorate([ class_validator_1.IsArray() ], API_SearchConfig.prototype, "folders", void 0); exports.API_SearchConfig = API_SearchConfig; class ISearchHit { } __decorate([ class_validator_1.IsString() ], ISearchHit.prototype, "title", void 0); __decorate([ class_transformer_1.Type(() => INavLink), class_validator_1.IsArray() ], ISearchHit.prototype, "breadcrumbs", void 0); __decorate([ class_validator_1.IsString() ], ISearchHit.prototype, "href", void 0); __decorate([ class_validator_1.IsArray() ], ISearchHit.prototype, "highlights", void 0); __decorate([ class_validator_1.IsString() ], ISearchHit.prototype, "shortDescription", void 0); exports.ISearchHit = ISearchHit; class ISearchResponse { } __decorate([ class_transformer_1.Type(() => ISearchHit), class_validator_1.IsArray() ], ISearchResponse.prototype, "results", void 0); __decorate([ class_validator_1.IsNumber() ], ISearchResponse.prototype, "total_count", void 0); exports.ISearchResponse = ISearchResponse; class IFacetValue { } __decorate([ class_validator_1.IsString() ], IFacetValue.prototype, "facet_name", void 0); __decorate([ class_validator_1.IsString() ], IFacetValue.prototype, "id", void 0); __decorate([ class_validator_1.ValidateNested(), class_transformer_1.Type(() => IFacetValue), class_validator_1.IsArray() ], IFacetValue.prototype, "children", void 0); exports.IFacetValue = IFacetValue; class IFilter { } __decorate([ class_validator_1.IsString() ], IFilter.prototype, "label", void 0); __decorate([ class_validator_1.IsString() ], IFilter.prototype, "key", void 0); __decorate([ class_validator_1.IsString() ], IFilter.prototype, "parent_taxon", void 0); exports.IFilter = IFilter; //# sourceMappingURL=Types.js.map