radiobrowser-api-client
Version:
Client for Radio Browser API
737 lines (736 loc) • 28.7 kB
JavaScript
;
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);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.StationClick = exports.StationOldVersion = exports.ServerConfig = exports.ServerStats = exports.StationCheckStep = exports.StationCheck = exports.Tag = exports.Language = exports.State = exports.Codec = exports.Country = exports.Station = exports.Server = void 0;
const typescript_json_serializer_1 = require("typescript-json-serializer");
let Server = class Server {
name;
ip;
};
exports.Server = Server;
__decorate([
(0, typescript_json_serializer_1.JsonProperty)(),
__metadata("design:type", String)
], Server.prototype, "name", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)(),
__metadata("design:type", String)
], Server.prototype, "ip", void 0);
exports.Server = Server = __decorate([
(0, typescript_json_serializer_1.JsonObject)()
], Server);
let Station = class Station {
changeUUID;
stationUUID;
serverUUID;
name;
url;
urlResolved;
homepageUrl;
faviconUrl;
tags;
countryName;
countryCode;
state;
languageNames;
languageCodes;
votes;
lastChangeTime;
codec;
bitrate;
hls;
lastCheckOk;
lastCheckDate;
lastCheckOkDate;
lastClickDate;
clickCount;
clickTrend;
sslError;
geoLat;
geoLong;
hasExtendedInfo;
};
exports.Station = Station;
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ name: 'changeuuid' }),
__metadata("design:type", String)
], Station.prototype, "changeUUID", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ name: 'stationuuid' }),
__metadata("design:type", String)
], Station.prototype, "stationUUID", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ name: 'serveruuid' }),
__metadata("design:type", String)
], Station.prototype, "serverUUID", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)(),
__metadata("design:type", String)
], Station.prototype, "name", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)(),
__metadata("design:type", String)
], Station.prototype, "url", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ name: 'url_resolved' }),
__metadata("design:type", String)
], Station.prototype, "urlResolved", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ name: 'homepage' }),
__metadata("design:type", String)
], Station.prototype, "homepageUrl", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ name: 'favicon' }),
__metadata("design:type", Object)
], Station.prototype, "faviconUrl", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ name: 'tags', beforeDeserialize: (value) => (value !== '' ? value.split(',') : []) }),
__metadata("design:type", Array)
], Station.prototype, "tags", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ name: 'country' }),
__metadata("design:type", String)
], Station.prototype, "countryName", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ name: 'countrycode' }),
__metadata("design:type", String)
], Station.prototype, "countryCode", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)(),
__metadata("design:type", String)
], Station.prototype, "state", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ name: 'language' }),
__metadata("design:type", String)
], Station.prototype, "languageNames", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ name: 'languagecodes' }),
__metadata("design:type", String)
], Station.prototype, "languageCodes", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)(),
__metadata("design:type", Number)
], Station.prototype, "votes", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ name: 'lastchangetime_iso8601' }),
__metadata("design:type", Date)
], Station.prototype, "lastChangeTime", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)(),
__metadata("design:type", String)
], Station.prototype, "codec", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)(),
__metadata("design:type", Number)
], Station.prototype, "bitrate", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ beforeDeserialize: (value) => Boolean(value) }),
__metadata("design:type", Boolean)
], Station.prototype, "hls", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ name: 'lastcheckok', beforeDeserialize: (value) => Boolean(value) }),
__metadata("design:type", Boolean)
], Station.prototype, "lastCheckOk", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ name: 'lastchecktime_iso8601' }),
__metadata("design:type", Date)
], Station.prototype, "lastCheckDate", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ name: 'lastcheckoktime_iso8601' }),
__metadata("design:type", Date)
], Station.prototype, "lastCheckOkDate", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ name: 'clicktimestamp_iso8601' }),
__metadata("design:type", Date)
], Station.prototype, "lastClickDate", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ name: 'clickcount' }),
__metadata("design:type", Number)
], Station.prototype, "clickCount", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ name: 'clicktrend' }),
__metadata("design:type", Number)
], Station.prototype, "clickTrend", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ name: 'ssl_error', beforeDeserialize: (value) => Boolean(value) }),
__metadata("design:type", Boolean)
], Station.prototype, "sslError", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ name: 'geo_lat' }),
__metadata("design:type", Object)
], Station.prototype, "geoLat", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ name: 'geo_long' }),
__metadata("design:type", Object)
], Station.prototype, "geoLong", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ name: 'has_extended_info' }),
__metadata("design:type", Object)
], Station.prototype, "hasExtendedInfo", void 0);
exports.Station = Station = __decorate([
(0, typescript_json_serializer_1.JsonObject)()
], Station);
let Country = class Country {
name;
code;
stationCount;
};
exports.Country = Country;
__decorate([
(0, typescript_json_serializer_1.JsonProperty)(),
__metadata("design:type", String)
], Country.prototype, "name", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ name: 'iso_3166_1' }),
__metadata("design:type", String)
], Country.prototype, "code", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ name: 'stationcount' }),
__metadata("design:type", Number)
], Country.prototype, "stationCount", void 0);
exports.Country = Country = __decorate([
(0, typescript_json_serializer_1.JsonObject)()
], Country);
let Codec = class Codec {
name;
stationCount;
};
exports.Codec = Codec;
__decorate([
(0, typescript_json_serializer_1.JsonProperty)(),
__metadata("design:type", String)
], Codec.prototype, "name", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ name: 'stationcount' }),
__metadata("design:type", Number)
], Codec.prototype, "stationCount", void 0);
exports.Codec = Codec = __decorate([
(0, typescript_json_serializer_1.JsonObject)()
], Codec);
let State = class State {
name;
countryName;
stationCount;
};
exports.State = State;
__decorate([
(0, typescript_json_serializer_1.JsonProperty)(),
__metadata("design:type", String)
], State.prototype, "name", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ name: 'country' }),
__metadata("design:type", String)
], State.prototype, "countryName", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ name: 'stationcount' }),
__metadata("design:type", Number)
], State.prototype, "stationCount", void 0);
exports.State = State = __decorate([
(0, typescript_json_serializer_1.JsonObject)()
], State);
let Language = class Language {
name;
code;
stationCount;
};
exports.Language = Language;
__decorate([
(0, typescript_json_serializer_1.JsonProperty)(),
__metadata("design:type", String)
], Language.prototype, "name", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ name: 'iso_639' }),
__metadata("design:type", Object)
], Language.prototype, "code", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ name: 'stationcount' }),
__metadata("design:type", Number)
], Language.prototype, "stationCount", void 0);
exports.Language = Language = __decorate([
(0, typescript_json_serializer_1.JsonObject)()
], Language);
let Tag = class Tag {
name;
stationCount;
};
exports.Tag = Tag;
__decorate([
(0, typescript_json_serializer_1.JsonProperty)(),
__metadata("design:type", String)
], Tag.prototype, "name", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ name: 'stationcount' }),
__metadata("design:type", Number)
], Tag.prototype, "stationCount", void 0);
exports.Tag = Tag = __decorate([
(0, typescript_json_serializer_1.JsonObject)()
], Tag);
let StationCheck = class StationCheck {
checkUUID;
stationUUID;
source;
codec;
bitrate;
hls;
ok;
date;
urlCache;
metainfoOverridesDatabase;
public;
name;
description;
tags;
countryCode;
countrySubdivisionCode;
homepageUrl;
faviconUrl;
loadBalancer;
serverSoftware;
sampling;
timingMs;
languageCodes;
sslError;
geoLat;
geoLong;
};
exports.StationCheck = StationCheck;
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ name: 'checkuuid' }),
__metadata("design:type", String)
], StationCheck.prototype, "checkUUID", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ name: 'stationuuid' }),
__metadata("design:type", String)
], StationCheck.prototype, "stationUUID", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)(),
__metadata("design:type", String)
], StationCheck.prototype, "source", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)(),
__metadata("design:type", String)
], StationCheck.prototype, "codec", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)(),
__metadata("design:type", Number)
], StationCheck.prototype, "bitrate", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ beforeDeserialize: (value) => Boolean(value) }),
__metadata("design:type", Boolean)
], StationCheck.prototype, "hls", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ beforeDeserialize: (value) => Boolean(value) }),
__metadata("design:type", Boolean)
], StationCheck.prototype, "ok", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ name: 'timestamp_iso8601' }),
__metadata("design:type", Date)
], StationCheck.prototype, "date", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ name: 'urlcache' }),
__metadata("design:type", String)
], StationCheck.prototype, "urlCache", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ name: 'metainfo_overrides_database', beforeDeserialize: (value) => Boolean(value) }),
__metadata("design:type", Boolean)
], StationCheck.prototype, "metainfoOverridesDatabase", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ beforeDeserialize: (value) => (value !== null ? Boolean(value) : null) }),
__metadata("design:type", Object)
], StationCheck.prototype, "public", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)(),
__metadata("design:type", Object)
], StationCheck.prototype, "name", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)(),
__metadata("design:type", Object)
], StationCheck.prototype, "description", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ beforeDeserialize: (value) => (value !== null && value !== '' ? value.split(',') : null) }),
__metadata("design:type", Object)
], StationCheck.prototype, "tags", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ name: 'countrycode' }),
__metadata("design:type", Object)
], StationCheck.prototype, "countryCode", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ name: 'countrysubdivisioncode' }),
__metadata("design:type", Object)
], StationCheck.prototype, "countrySubdivisionCode", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ name: 'homepage' }),
__metadata("design:type", Object)
], StationCheck.prototype, "homepageUrl", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ name: 'favicon' }),
__metadata("design:type", Object)
], StationCheck.prototype, "faviconUrl", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ name: 'loadbalancer' }),
__metadata("design:type", Object)
], StationCheck.prototype, "loadBalancer", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ name: 'server_software' }),
__metadata("design:type", Object)
], StationCheck.prototype, "serverSoftware", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)(),
__metadata("design:type", Object)
], StationCheck.prototype, "sampling", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ name: 'timing_ms' }),
__metadata("design:type", Number)
], StationCheck.prototype, "timingMs", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ name: 'languagecodes', beforeDeserialize: (value) => (value !== null && value !== '' ? value.split(',') : null) }),
__metadata("design:type", Object)
], StationCheck.prototype, "languageCodes", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ name: 'ssl_error', beforeDeserialize: (value) => Boolean(value) }),
__metadata("design:type", Boolean)
], StationCheck.prototype, "sslError", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ name: 'geo_lat' }),
__metadata("design:type", Object)
], StationCheck.prototype, "geoLat", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ name: 'geo_long' }),
__metadata("design:type", Object)
], StationCheck.prototype, "geoLong", void 0);
exports.StationCheck = StationCheck = __decorate([
(0, typescript_json_serializer_1.JsonObject)()
], StationCheck);
let StationCheckStep = class StationCheckStep {
stepUUID;
parentStepUUID;
checkUUID;
stationUUID;
url;
urlType;
error;
createdAt;
};
exports.StationCheckStep = StationCheckStep;
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ name: 'stepuuid' }),
__metadata("design:type", String)
], StationCheckStep.prototype, "stepUUID", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ name: 'parent_stepuuid' }),
__metadata("design:type", Object)
], StationCheckStep.prototype, "parentStepUUID", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ name: 'checkuuid' }),
__metadata("design:type", String)
], StationCheckStep.prototype, "checkUUID", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ name: 'stationuuid' }),
__metadata("design:type", String)
], StationCheckStep.prototype, "stationUUID", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)(),
__metadata("design:type", String)
], StationCheckStep.prototype, "url", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ name: 'urltype' }),
__metadata("design:type", Object)
], StationCheckStep.prototype, "urlType", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)(),
__metadata("design:type", Object)
], StationCheckStep.prototype, "error", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ name: 'creation_ios8601' }),
__metadata("design:type", Date)
], StationCheckStep.prototype, "createdAt", void 0);
exports.StationCheckStep = StationCheckStep = __decorate([
(0, typescript_json_serializer_1.JsonObject)()
], StationCheckStep);
let ServerStats = class ServerStats {
supportedVersion;
softwareVersion;
status;
stations;
brokenStations;
tags;
clicksLastHour;
clicksLastDay;
languages;
countries;
};
exports.ServerStats = ServerStats;
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ name: 'supported_version' }),
__metadata("design:type", Number)
], ServerStats.prototype, "supportedVersion", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ name: 'software_version' }),
__metadata("design:type", String)
], ServerStats.prototype, "softwareVersion", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)(),
__metadata("design:type", String)
], ServerStats.prototype, "status", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)(),
__metadata("design:type", Number)
], ServerStats.prototype, "stations", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ name: 'stations_broken' }),
__metadata("design:type", Number)
], ServerStats.prototype, "brokenStations", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)(),
__metadata("design:type", Number)
], ServerStats.prototype, "tags", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ name: 'clicks_last_hour' }),
__metadata("design:type", Number)
], ServerStats.prototype, "clicksLastHour", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ name: 'clicks_last_day' }),
__metadata("design:type", Number)
], ServerStats.prototype, "clicksLastDay", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)(),
__metadata("design:type", Number)
], ServerStats.prototype, "languages", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)(),
__metadata("design:type", Number)
], ServerStats.prototype, "countries", void 0);
exports.ServerStats = ServerStats = __decorate([
(0, typescript_json_serializer_1.JsonObject)()
], ServerStats);
let ServerConfig = class ServerConfig {
checkEnabled;
prometheusExporterEnabled;
pullServers;
tcpTimeoutSeconds;
brokenStationsNeverWorkingTimeoutSeconds;
brokenStationsTimeoutSeconds;
checksTimeoutSeconds;
clickValidTimeoutSeconds;
clicksTimeoutSeconds;
mirrorPullIntervalSeconds;
updateCachesIntervalSeconds;
serverName;
serverLocation;
serverCountryCode;
checkRetries;
checkBatchsize;
checkPauseSeconds;
apiThreads;
cacheType;
cacheTtl;
languageReplaceFilepath;
languageToCodeFilepath;
};
exports.ServerConfig = ServerConfig;
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ name: 'check_enabled' }),
__metadata("design:type", Boolean)
], ServerConfig.prototype, "checkEnabled", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ name: 'prometheus_exporter_enabled' }),
__metadata("design:type", Boolean)
], ServerConfig.prototype, "prometheusExporterEnabled", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ name: 'pull_servers' }),
__metadata("design:type", Array)
], ServerConfig.prototype, "pullServers", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ name: 'tcp_timeout_seconds' }),
__metadata("design:type", Number)
], ServerConfig.prototype, "tcpTimeoutSeconds", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ name: 'broken_stations_never_working_timeout_seconds' }),
__metadata("design:type", Number)
], ServerConfig.prototype, "brokenStationsNeverWorkingTimeoutSeconds", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ name: 'broken_stations_timeout_seconds' }),
__metadata("design:type", Number)
], ServerConfig.prototype, "brokenStationsTimeoutSeconds", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ name: 'checks_timeout_seconds' }),
__metadata("design:type", Number)
], ServerConfig.prototype, "checksTimeoutSeconds", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ name: 'click_valid_timeout_seconds' }),
__metadata("design:type", Number)
], ServerConfig.prototype, "clickValidTimeoutSeconds", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ name: 'clicks_timeout_seconds' }),
__metadata("design:type", Number)
], ServerConfig.prototype, "clicksTimeoutSeconds", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ name: 'mirror_pull_interval_seconds' }),
__metadata("design:type", Number)
], ServerConfig.prototype, "mirrorPullIntervalSeconds", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ name: 'update_caches_interval_seconds' }),
__metadata("design:type", Number)
], ServerConfig.prototype, "updateCachesIntervalSeconds", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ name: 'server_name' }),
__metadata("design:type", String)
], ServerConfig.prototype, "serverName", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ name: 'server_location' }),
__metadata("design:type", String)
], ServerConfig.prototype, "serverLocation", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ name: 'server_country_code' }),
__metadata("design:type", String)
], ServerConfig.prototype, "serverCountryCode", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ name: 'check_retries' }),
__metadata("design:type", Number)
], ServerConfig.prototype, "checkRetries", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ name: 'check_batchsize' }),
__metadata("design:type", Number)
], ServerConfig.prototype, "checkBatchsize", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ name: 'check_pause_seconds' }),
__metadata("design:type", Number)
], ServerConfig.prototype, "checkPauseSeconds", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ name: 'api_threads' }),
__metadata("design:type", Number)
], ServerConfig.prototype, "apiThreads", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ name: 'cache_type' }),
__metadata("design:type", String)
], ServerConfig.prototype, "cacheType", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ name: 'cache_ttl' }),
__metadata("design:type", Number)
], ServerConfig.prototype, "cacheTtl", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ name: 'language_replace_filepath' }),
__metadata("design:type", String)
], ServerConfig.prototype, "languageReplaceFilepath", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ name: 'language_to_code_filepath' }),
__metadata("design:type", String)
], ServerConfig.prototype, "languageToCodeFilepath", void 0);
exports.ServerConfig = ServerConfig = __decorate([
(0, typescript_json_serializer_1.JsonObject)()
], ServerConfig);
let StationOldVersion = class StationOldVersion {
changeUUID;
stationUUID;
name;
url;
homepageUrl;
faviconUrl;
tags;
countryName;
countryCode;
state;
languageNames;
languageCodes;
votes;
lastChangeTime;
geoLat;
geoLong;
};
exports.StationOldVersion = StationOldVersion;
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ name: 'changeuuid' }),
__metadata("design:type", String)
], StationOldVersion.prototype, "changeUUID", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ name: 'stationuuid' }),
__metadata("design:type", String)
], StationOldVersion.prototype, "stationUUID", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)(),
__metadata("design:type", String)
], StationOldVersion.prototype, "name", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)(),
__metadata("design:type", String)
], StationOldVersion.prototype, "url", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ name: 'homepage' }),
__metadata("design:type", String)
], StationOldVersion.prototype, "homepageUrl", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ name: 'favicon' }),
__metadata("design:type", Object)
], StationOldVersion.prototype, "faviconUrl", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ beforeDeserialize: (value) => (value !== '' ? value.split(',') : []) }),
__metadata("design:type", Array)
], StationOldVersion.prototype, "tags", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ name: 'country' }),
__metadata("design:type", String)
], StationOldVersion.prototype, "countryName", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ name: 'countrycode' }),
__metadata("design:type", String)
], StationOldVersion.prototype, "countryCode", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)(),
__metadata("design:type", String)
], StationOldVersion.prototype, "state", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ name: 'language' }),
__metadata("design:type", String)
], StationOldVersion.prototype, "languageNames", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ name: 'languagecodes' }),
__metadata("design:type", String)
], StationOldVersion.prototype, "languageCodes", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)(),
__metadata("design:type", Number)
], StationOldVersion.prototype, "votes", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ name: 'lastchangetime_iso8601' }),
__metadata("design:type", Date)
], StationOldVersion.prototype, "lastChangeTime", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ name: 'geo_lat' }),
__metadata("design:type", Object)
], StationOldVersion.prototype, "geoLat", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ name: 'geo_long' }),
__metadata("design:type", Object)
], StationOldVersion.prototype, "geoLong", void 0);
exports.StationOldVersion = StationOldVersion = __decorate([
(0, typescript_json_serializer_1.JsonObject)()
], StationOldVersion);
let StationClick = class StationClick {
stationUUID;
clickUUID;
clickDate;
};
exports.StationClick = StationClick;
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ name: 'stationuuid' }),
__metadata("design:type", String)
], StationClick.prototype, "stationUUID", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ name: 'clickuuid' }),
__metadata("design:type", String)
], StationClick.prototype, "clickUUID", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ name: 'clicktimestamp_iso8601' }),
__metadata("design:type", Date)
], StationClick.prototype, "clickDate", void 0);
exports.StationClick = StationClick = __decorate([
(0, typescript_json_serializer_1.JsonObject)()
], StationClick);