UNPKG

2.04 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 });
12exports.PageInfo = void 0;
13var type_graphql_1 = require("type-graphql");
14var PageInfo = /** @class */ (function () {
15 function PageInfo() {
16 }
17 __decorate([
18 type_graphql_1.Field(function () { return Number; }, { nullable: false }),
19 __metadata("design:type", Number)
20 ], PageInfo.prototype, "limit", void 0);
21 __decorate([
22 type_graphql_1.Field(function () { return Number; }, { nullable: false }),
23 __metadata("design:type", Number)
24 ], PageInfo.prototype, "offset", void 0);
25 __decorate([
26 type_graphql_1.Field(function () { return Number; }, { nullable: false }),
27 __metadata("design:type", Number)
28 ], PageInfo.prototype, "totalCount", void 0);
29 __decorate([
30 type_graphql_1.Field({ nullable: false }),
31 __metadata("design:type", Boolean)
32 ], PageInfo.prototype, "hasNextPage", void 0);
33 __decorate([
34 type_graphql_1.Field({ nullable: false }),
35 __metadata("design:type", Boolean)
36 ], PageInfo.prototype, "hasPreviousPage", void 0);
37 PageInfo = __decorate([
38 type_graphql_1.ObjectType()
39 ], PageInfo);
40 return PageInfo;
41}());
42exports.PageInfo = PageInfo;
43//# sourceMappingURL=PageInfo.js.map
\No newline at end of file