UNPKG

2.62 kBJavaScriptView Raw
1"use strict";
2var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3 var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4 if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5 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;
6 return c > 3 && r && Object.defineProperty(target, key, r), r;
7};
8var __metadata = (this && this.__metadata) || function (k, v) {
9 if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10};
11Object.defineProperty(exports, "__esModule", { value: true });
12const swagger_1 = require("@nestjs/swagger");
13class APILinks {
14}
15__decorate([
16 swagger_1.ApiModelProperty({ description: 'The homepage url of the package' }),
17 __metadata("design:type", String)
18], APILinks.prototype, "homepage", void 0);
19__decorate([
20 swagger_1.ApiModelProperty({ description: 'The bug report url of the package' }),
21 __metadata("design:type", String)
22], APILinks.prototype, "bug_report", void 0);
23__decorate([
24 swagger_1.ApiModelProperty({ description: 'The repository url of the package' }),
25 __metadata("design:type", String)
26], APILinks.prototype, "repository", void 0);
27__decorate([
28 swagger_1.ApiModelProperty({ description: ' The api documentation url' }),
29 __metadata("design:type", String)
30], APILinks.prototype, "docs", void 0);
31exports.APILinks = APILinks;
32class APIDto {
33}
34__decorate([
35 swagger_1.ApiModelProperty({ description: 'The version of the API' }),
36 __metadata("design:type", String)
37], APIDto.prototype, "api_version", void 0);
38__decorate([
39 swagger_1.ApiModelProperty({ description: 'The version of the npm package of the running API' }),
40 __metadata("design:type", String)
41], APIDto.prototype, "package_version", void 0);
42__decorate([
43 swagger_1.ApiModelProperty({ description: 'The name of the npm package' }),
44 __metadata("design:type", String)
45], APIDto.prototype, "name", void 0);
46__decorate([
47 swagger_1.ApiModelProperty({ description: 'The description of the npm package' }),
48 __metadata("design:type", String)
49], APIDto.prototype, "description", void 0);
50__decorate([
51 swagger_1.ApiModelProperty({ description: 'Further links related to the API' }),
52 __metadata("design:type", APILinks)
53], APIDto.prototype, "_links", void 0);
54exports.APIDto = APIDto;
55//# sourceMappingURL=api.dto.js.map
\No newline at end of file