radiobrowser-api-client
Version:
Client for Radio Browser API
409 lines (408 loc) • 14.6 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.IStationOldVersion = exports.IStationCheckSteps = exports.IStationClicks = exports.IStationChecks = exports.ITags = exports.ILanguages = exports.IStates = exports.ICodecs = exports.ICountries = exports.ISearchStation = void 0;
const typescript_json_serializer_1 = require("typescript-json-serializer");
let ISearchStation = class ISearchStation {
name;
nameExact;
countryName;
countryExact;
countryCode;
state;
stateExact;
languageName;
languageExact;
tag;
tagExact;
tagList;
codec;
bitrateMin;
bitrateMax;
hasGeoInfo;
hasExtendedInfo;
isHttps;
order;
reverse;
offset;
limit;
hideBroken;
constructor(data) {
Object.assign(this, data);
}
};
exports.ISearchStation = ISearchStation;
__decorate([
(0, typescript_json_serializer_1.JsonProperty)(),
__metadata("design:type", String)
], ISearchStation.prototype, "name", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)(),
__metadata("design:type", Boolean)
], ISearchStation.prototype, "nameExact", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ name: 'country' }),
__metadata("design:type", String)
], ISearchStation.prototype, "countryName", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)(),
__metadata("design:type", Boolean)
], ISearchStation.prototype, "countryExact", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ name: 'countrycode' }),
__metadata("design:type", String)
], ISearchStation.prototype, "countryCode", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)(),
__metadata("design:type", String)
], ISearchStation.prototype, "state", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)(),
__metadata("design:type", Boolean)
], ISearchStation.prototype, "stateExact", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ name: 'language' }),
__metadata("design:type", String)
], ISearchStation.prototype, "languageName", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)(),
__metadata("design:type", Boolean)
], ISearchStation.prototype, "languageExact", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)(),
__metadata("design:type", String)
], ISearchStation.prototype, "tag", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)(),
__metadata("design:type", String)
], ISearchStation.prototype, "tagExact", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ beforeSerialize: (value) => (value ? value.join(',') : []) }),
__metadata("design:type", Array)
], ISearchStation.prototype, "tagList", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)(),
__metadata("design:type", String)
], ISearchStation.prototype, "codec", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)(),
__metadata("design:type", Number)
], ISearchStation.prototype, "bitrateMin", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)(),
__metadata("design:type", Number)
], ISearchStation.prototype, "bitrateMax", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ name: 'has_geo_info' }),
__metadata("design:type", Boolean)
], ISearchStation.prototype, "hasGeoInfo", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ name: 'has_extended_info' }),
__metadata("design:type", Boolean)
], ISearchStation.prototype, "hasExtendedInfo", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ name: 'is_https' }),
__metadata("design:type", Boolean)
], ISearchStation.prototype, "isHttps", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)(),
__metadata("design:type", String)
], ISearchStation.prototype, "order", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)(),
__metadata("design:type", Boolean)
], ISearchStation.prototype, "reverse", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)(),
__metadata("design:type", Number)
], ISearchStation.prototype, "offset", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)(),
__metadata("design:type", Number)
], ISearchStation.prototype, "limit", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ name: 'hidebroken' }),
__metadata("design:type", Boolean)
], ISearchStation.prototype, "hideBroken", void 0);
exports.ISearchStation = ISearchStation = __decorate([
(0, typescript_json_serializer_1.JsonObject)(),
__metadata("design:paramtypes", [ISearchStation])
], ISearchStation);
let ICountries = class ICountries {
order;
reverse;
hideBroken;
offset;
limit;
constructor(data) {
Object.assign(this, data);
}
};
exports.ICountries = ICountries;
__decorate([
(0, typescript_json_serializer_1.JsonProperty)(),
__metadata("design:type", String)
], ICountries.prototype, "order", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)(),
__metadata("design:type", Boolean)
], ICountries.prototype, "reverse", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ name: 'hidebroken' }),
__metadata("design:type", Boolean)
], ICountries.prototype, "hideBroken", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)(),
__metadata("design:type", Number)
], ICountries.prototype, "offset", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)(),
__metadata("design:type", Number)
], ICountries.prototype, "limit", void 0);
exports.ICountries = ICountries = __decorate([
(0, typescript_json_serializer_1.JsonObject)(),
__metadata("design:paramtypes", [ICountries])
], ICountries);
let ICodecs = class ICodecs {
order;
reverse;
hideBroken;
offset;
limit;
constructor(data) {
Object.assign(this, data);
}
};
exports.ICodecs = ICodecs;
__decorate([
(0, typescript_json_serializer_1.JsonProperty)(),
__metadata("design:type", String)
], ICodecs.prototype, "order", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)(),
__metadata("design:type", Boolean)
], ICodecs.prototype, "reverse", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ name: 'hidebroken' }),
__metadata("design:type", Boolean)
], ICodecs.prototype, "hideBroken", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)(),
__metadata("design:type", Number)
], ICodecs.prototype, "offset", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)(),
__metadata("design:type", Number)
], ICodecs.prototype, "limit", void 0);
exports.ICodecs = ICodecs = __decorate([
(0, typescript_json_serializer_1.JsonObject)(),
__metadata("design:paramtypes", [ICodecs])
], ICodecs);
let IStates = class IStates {
order;
reverse;
countryName;
hideBroken;
offset;
limit;
constructor(data) {
Object.assign(this, data);
}
};
exports.IStates = IStates;
__decorate([
(0, typescript_json_serializer_1.JsonProperty)(),
__metadata("design:type", String)
], IStates.prototype, "order", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)(),
__metadata("design:type", Boolean)
], IStates.prototype, "reverse", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ name: 'country' }),
__metadata("design:type", String)
], IStates.prototype, "countryName", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ name: 'hidebroken' }),
__metadata("design:type", Boolean)
], IStates.prototype, "hideBroken", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)(),
__metadata("design:type", Number)
], IStates.prototype, "offset", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)(),
__metadata("design:type", Number)
], IStates.prototype, "limit", void 0);
exports.IStates = IStates = __decorate([
(0, typescript_json_serializer_1.JsonObject)(),
__metadata("design:paramtypes", [IStates])
], IStates);
let ILanguages = class ILanguages {
order;
reverse;
hideBroken;
offset;
limit;
constructor(data) {
Object.assign(this, data);
}
};
exports.ILanguages = ILanguages;
__decorate([
(0, typescript_json_serializer_1.JsonProperty)(),
__metadata("design:type", String)
], ILanguages.prototype, "order", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)(),
__metadata("design:type", Boolean)
], ILanguages.prototype, "reverse", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ name: 'hidebroken' }),
__metadata("design:type", Boolean)
], ILanguages.prototype, "hideBroken", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)(),
__metadata("design:type", Number)
], ILanguages.prototype, "offset", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)(),
__metadata("design:type", Number)
], ILanguages.prototype, "limit", void 0);
exports.ILanguages = ILanguages = __decorate([
(0, typescript_json_serializer_1.JsonObject)(),
__metadata("design:paramtypes", [ILanguages])
], ILanguages);
let ITags = class ITags {
order;
reverse;
hideBroken;
offset;
limit;
constructor(data) {
Object.assign(this, data);
}
};
exports.ITags = ITags;
__decorate([
(0, typescript_json_serializer_1.JsonProperty)(),
__metadata("design:type", String)
], ITags.prototype, "order", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)(),
__metadata("design:type", Boolean)
], ITags.prototype, "reverse", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ name: 'hidebroken' }),
__metadata("design:type", Boolean)
], ITags.prototype, "hideBroken", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)(),
__metadata("design:type", Number)
], ITags.prototype, "offset", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)(),
__metadata("design:type", Number)
], ITags.prototype, "limit", void 0);
exports.ITags = ITags = __decorate([
(0, typescript_json_serializer_1.JsonObject)(),
__metadata("design:paramtypes", [ITags])
], ITags);
let IStationChecks = class IStationChecks {
stationUUID;
lastCheckUUID;
seconds;
limit;
constructor(data) {
Object.assign(this, data);
}
};
exports.IStationChecks = IStationChecks;
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ name: 'stationUUID' }),
__metadata("design:type", String)
], IStationChecks.prototype, "stationUUID", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ name: 'lastcheckuuid' }),
__metadata("design:type", String)
], IStationChecks.prototype, "lastCheckUUID", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)(),
__metadata("design:type", Number)
], IStationChecks.prototype, "seconds", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)(),
__metadata("design:type", Number)
], IStationChecks.prototype, "limit", void 0);
exports.IStationChecks = IStationChecks = __decorate([
(0, typescript_json_serializer_1.JsonObject)(),
__metadata("design:paramtypes", [IStationChecks])
], IStationChecks);
let IStationClicks = class IStationClicks {
stationUUID;
lastClickUUID;
seconds;
constructor(data) {
Object.assign(this, data);
}
};
exports.IStationClicks = IStationClicks;
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ name: 'stationuuid' }),
__metadata("design:type", String)
], IStationClicks.prototype, "stationUUID", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)(),
__metadata("design:type", String)
], IStationClicks.prototype, "lastClickUUID", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)(),
__metadata("design:type", Number)
], IStationClicks.prototype, "seconds", void 0);
exports.IStationClicks = IStationClicks = __decorate([
(0, typescript_json_serializer_1.JsonObject)(),
__metadata("design:paramtypes", [IStationClicks])
], IStationClicks);
let IStationCheckSteps = class IStationCheckSteps {
UUIDs;
constructor(data) {
Object.assign(this, data);
}
};
exports.IStationCheckSteps = IStationCheckSteps;
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ name: 'uuids' }),
__metadata("design:type", Array)
], IStationCheckSteps.prototype, "UUIDs", void 0);
exports.IStationCheckSteps = IStationCheckSteps = __decorate([
(0, typescript_json_serializer_1.JsonObject)(),
__metadata("design:paramtypes", [IStationCheckSteps])
], IStationCheckSteps);
let IStationOldVersion = class IStationOldVersion {
lastChangeUUID;
limit;
constructor(data) {
Object.assign(this, data);
}
};
exports.IStationOldVersion = IStationOldVersion;
__decorate([
(0, typescript_json_serializer_1.JsonProperty)({ name: 'lastchangeuuid' }),
__metadata("design:type", String)
], IStationOldVersion.prototype, "lastChangeUUID", void 0);
__decorate([
(0, typescript_json_serializer_1.JsonProperty)(),
__metadata("design:type", Number)
], IStationOldVersion.prototype, "limit", void 0);
exports.IStationOldVersion = IStationOldVersion = __decorate([
(0, typescript_json_serializer_1.JsonObject)(),
__metadata("design:paramtypes", [IStationOldVersion])
], IStationOldVersion);