UNPKG

@kfijolek/boardgamegeekclient

Version:

TypeScript client to interact with BoardGameGeek public XML API

132 lines 5.35 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; }; import { JsonAlias, JsonClassType, JsonDeserialize, JsonManagedReference, JsonProperty } from "jackson-js"; export class BggCollectionItemStatsDto { } __decorate([ JsonProperty(), JsonClassType({ type: () => [Number] }), JsonAlias({ values: ["@_minplayers"] }) ], BggCollectionItemStatsDto.prototype, "minplayers", void 0); __decorate([ JsonProperty(), JsonClassType({ type: () => [Number] }), JsonAlias({ values: ["@_maxplayers"] }) ], BggCollectionItemStatsDto.prototype, "maxplayers", void 0); __decorate([ JsonProperty(), JsonClassType({ type: () => [Number] }), JsonAlias({ values: ["@_minplaytime"] }) ], BggCollectionItemStatsDto.prototype, "minplaytime", void 0); __decorate([ JsonProperty(), JsonClassType({ type: () => [Number] }), JsonAlias({ values: ["@_maxplaytime"] }) ], BggCollectionItemStatsDto.prototype, "maxplaytime", void 0); __decorate([ JsonProperty(), JsonClassType({ type: () => [Number] }), JsonAlias({ values: ["@_playingtime"] }) ], BggCollectionItemStatsDto.prototype, "playingtime", void 0); __decorate([ JsonProperty(), JsonClassType({ type: () => [Number] }), JsonAlias({ values: ["@_numowned"] }) ], BggCollectionItemStatsDto.prototype, "numowned", void 0); __decorate([ JsonProperty(), JsonClassType({ type: () => [BggCollectionItemStatRatingDto] }), JsonManagedReference(), JsonDeserialize({ //eslint-disable-next-line @typescript-eslint/no-explicit-any using: (items) => items[0] }) ], BggCollectionItemStatsDto.prototype, "rating", void 0); export class BggCollectionItemStatRatingDto { } __decorate([ JsonProperty(), JsonClassType({ type: () => [Number] }), JsonAlias({ values: ["@_value"] }) ], BggCollectionItemStatRatingDto.prototype, "value", void 0); __decorate([ JsonProperty(), JsonClassType({ type: () => [Number] }), JsonDeserialize({ using: (value) => value.map(item => item['@_value'])[0] }) ], BggCollectionItemStatRatingDto.prototype, "usersrated", void 0); __decorate([ JsonProperty(), JsonClassType({ type: () => [Number] }), JsonDeserialize({ using: (value) => value.map(item => item['@_value'])[0] }) ], BggCollectionItemStatRatingDto.prototype, "average", void 0); __decorate([ JsonProperty(), JsonClassType({ type: () => [Number] }), JsonDeserialize({ using: (value) => value.map(item => item['@_value'])[0] }) ], BggCollectionItemStatRatingDto.prototype, "bayesaverage", void 0); __decorate([ JsonProperty(), JsonClassType({ type: () => [Number] }), JsonDeserialize({ using: (value) => value.map(item => item['@_value'])[0] }) ], BggCollectionItemStatRatingDto.prototype, "stddev", void 0); __decorate([ JsonProperty(), JsonClassType({ type: () => [Number] }), JsonDeserialize({ using: (value) => value.map(item => item['@_value'])[0] }) ], BggCollectionItemStatRatingDto.prototype, "median", void 0); __decorate([ JsonProperty(), JsonClassType({ type: () => [Array, [BggCollectionItemStatRatingRanksDto]] }), JsonManagedReference(), JsonDeserialize({ //eslint-disable-next-line @typescript-eslint/no-explicit-any using: (items) => { var _a; return (_a = items[0]) === null || _a === void 0 ? void 0 : _a.rank; } }) ], BggCollectionItemStatRatingDto.prototype, "ranks", void 0); export class BggCollectionItemStatRatingRanksDto { } __decorate([ JsonProperty(), JsonClassType({ type: () => [Number] }), JsonAlias({ values: ["@_type"] }) ], BggCollectionItemStatRatingRanksDto.prototype, "type", void 0); __decorate([ JsonProperty(), JsonClassType({ type: () => [Number] }), JsonAlias({ values: ["@_id"] }) ], BggCollectionItemStatRatingRanksDto.prototype, "id", void 0); __decorate([ JsonProperty(), JsonClassType({ type: () => [Number] }), JsonAlias({ values: ["@_name"] }) ], BggCollectionItemStatRatingRanksDto.prototype, "name", void 0); __decorate([ JsonProperty(), JsonClassType({ type: () => [Number] }), JsonAlias({ values: ["@_friendlyname"] }) ], BggCollectionItemStatRatingRanksDto.prototype, "friendlyname", void 0); __decorate([ JsonProperty(), JsonClassType({ type: () => [Number] }), JsonAlias({ values: ["@_value"] }) ], BggCollectionItemStatRatingRanksDto.prototype, "value", void 0); __decorate([ JsonProperty(), JsonClassType({ type: () => [Number] }), JsonAlias({ values: ["@_bayesaverage"] }) ], BggCollectionItemStatRatingRanksDto.prototype, "bayesaverage", void 0); //# sourceMappingURL=BggCollectionItemStatsDto.js.map