@kominal/common-nestjs 0.0.21 → 0.0.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,12 +0,0 @@
1
- export declare class ListParams {
2
- active?: string;
3
- direction?: string;
4
- pageIndex?: number;
5
- pageSize?: number;
6
- filter?: string;
7
- }
8
- export declare class ListResponse<T> {
9
- items: T[];
10
- count: number;
11
- }
12
- export declare const OpenApiPaginationResponse: (model: any) => (<TFunction extends Function, Y>(target: object | TFunction, propertyKey?: string | symbol, descriptor?: TypedPropertyDescriptor<Y>) => void);
@@ -1,27 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.OpenApiPaginationResponse = exports.ListResponse = exports.ListParams = void 0;
4
- const common_1 = require("@nestjs/common");
5
- const swagger_1 = require("@nestjs/swagger");
6
- class ListParams {
7
- }
8
- exports.ListParams = ListParams;
9
- class ListResponse {
10
- }
11
- exports.ListResponse = ListResponse;
12
- const OpenApiPaginationResponse = (model) => (0, common_1.applyDecorators)((0, swagger_1.ApiOkResponse)({
13
- schema: {
14
- properties: {
15
- items: {
16
- type: 'array',
17
- items: { $ref: (0, swagger_1.getSchemaPath)(model) },
18
- },
19
- count: {
20
- type: 'number',
21
- },
22
- },
23
- required: ['items', 'count'],
24
- },
25
- }), (0, swagger_1.ApiExtraModels)(model));
26
- exports.OpenApiPaginationResponse = OpenApiPaginationResponse;
27
- //# sourceMappingURL=pagination.model.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pagination.model.js","sourceRoot":"","sources":["../../src/models/pagination.model.ts"],"names":[],"mappings":";;;AAAA,2CAAiD;AACjD,6CAA+E;AAE/E,MAAa,UAAU;CAMtB;AAND,gCAMC;AAED,MAAa,YAAY;CAGxB;AAHD,oCAGC;AAEM,MAAM,yBAAyB,GAAG,CACxC,KAAU,EAKA,EAAE,CACZ,IAAA,wBAAe,EACd,IAAA,uBAAa,EAAC;IACb,MAAM,EAAE;QACP,UAAU,EAAE;YACX,KAAK,EAAE;gBACN,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE,EAAE,IAAI,EAAE,IAAA,uBAAa,EAAC,KAAK,CAAC,EAAE;aACrC;YACD,KAAK,EAAE;gBACN,IAAI,EAAE,QAAQ;aACd;SACD;QACD,QAAQ,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC;KAC5B;CACD,CAAC,EACF,IAAA,wBAAc,EAAC,KAAK,CAAC,CACrB,CAAC;AAvBU,QAAA,yBAAyB,6BAuBnC"}