@nmxjs/types 1.0.16 → 1.0.17
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.
- package/dist/dto/GetOneRequestDto.d.ts +4 -0
- package/dist/dto/GetOneRequestDto.js +32 -0
- package/dist/dto/GetOneRequestDto.js.map +1 -0
- package/dist/dto/GetOneResponseDto.d.ts +3 -0
- package/dist/dto/GetOneResponseDto.js +7 -0
- package/dist/dto/GetOneResponseDto.js.map +1 -0
- package/dist/dto/ListRequestDto.d.ts +2 -1
- package/dist/dto/ListRequestDto.js +9 -0
- package/dist/dto/ListRequestDto.js.map +1 -1
- package/dist/dto/ListResponseDto.d.ts +1 -1
- package/dist/dto/index.d.ts +2 -0
- package/dist/dto/index.js +2 -0
- package/dist/dto/index.js.map +1 -1
- package/package.json +1 -1
- package/types.d.ts +1 -0
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __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
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.GetOneRequestDto = void 0;
|
|
13
|
+
const validation_1 = require("@nmxjs/validation");
|
|
14
|
+
class GetOneRequestDto {
|
|
15
|
+
}
|
|
16
|
+
exports.GetOneRequestDto = GetOneRequestDto;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, validation_1.Field)({
|
|
19
|
+
type: String,
|
|
20
|
+
}),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], GetOneRequestDto.prototype, "id", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, validation_1.Field)({
|
|
25
|
+
type: String,
|
|
26
|
+
array: true,
|
|
27
|
+
nullable: true,
|
|
28
|
+
withoutGraphQl: true,
|
|
29
|
+
}),
|
|
30
|
+
__metadata("design:type", Array)
|
|
31
|
+
], GetOneRequestDto.prototype, "select", void 0);
|
|
32
|
+
//# sourceMappingURL=GetOneRequestDto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GetOneRequestDto.js","sourceRoot":"","sources":["../../src/dto/GetOneRequestDto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA0C;AAE1C,MAAsB,gBAAgB;CAarC;AAbD,4CAaC;AATC;IAHC,IAAA,kBAAK,EAAC;QACL,IAAI,EAAE,MAAM;KACb,CAAC;;4CACS;AAQX;IANC,IAAA,kBAAK,EAAC;QACL,IAAI,EAAE,MAAM;QACZ,KAAK,EAAE,IAAI;QACX,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE,IAAI;KACrB,CAAC;8BACO,KAAK;gDAAU"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GetOneResponseDto.js","sourceRoot":"","sources":["../../src/dto/GetOneResponseDto.ts"],"names":[],"mappings":";;;AAAA,MAAsB,iBAAiB;CAEtC;AAFD,8CAEC"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { ListRequestPaginationDto } from './ListRequestPaginationDto';
|
|
2
2
|
import { ListRequestFilterDto } from './ListRequestFilterDto';
|
|
3
3
|
import { ListRequestSortDto } from './ListRequestSortDto';
|
|
4
|
-
export declare abstract class ListRequestDto {
|
|
4
|
+
export declare abstract class ListRequestDto<T extends object = object> {
|
|
5
5
|
filters?: ListRequestFilterDto[];
|
|
6
6
|
sorts?: ListRequestSortDto[];
|
|
7
7
|
pagination?: ListRequestPaginationDto;
|
|
8
|
+
select?: Array<keyof T>;
|
|
8
9
|
}
|
|
@@ -40,4 +40,13 @@ __decorate([
|
|
|
40
40
|
}),
|
|
41
41
|
__metadata("design:type", ListRequestPaginationDto_1.ListRequestPaginationDto)
|
|
42
42
|
], ListRequestDto.prototype, "pagination", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, validation_1.Field)({
|
|
45
|
+
type: String,
|
|
46
|
+
array: true,
|
|
47
|
+
nullable: true,
|
|
48
|
+
withoutGraphQl: true,
|
|
49
|
+
}),
|
|
50
|
+
__metadata("design:type", Array)
|
|
51
|
+
], ListRequestDto.prototype, "select", void 0);
|
|
43
52
|
//# sourceMappingURL=ListRequestDto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ListRequestDto.js","sourceRoot":"","sources":["../../src/dto/ListRequestDto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA0C;AAC1C,yEAAsE;AACtE,iEAA8D;AAC9D,6DAA0D;AAE1D,MAAsB,cAAc;
|
|
1
|
+
{"version":3,"file":"ListRequestDto.js","sourceRoot":"","sources":["../../src/dto/ListRequestDto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA0C;AAC1C,yEAAsE;AACtE,iEAA8D;AAC9D,6DAA0D;AAE1D,MAAsB,cAAc;CA4BnC;AA5BD,wCA4BC;AAtBC;IALC,IAAA,kBAAK,EAAC;QACL,IAAI,EAAE,2CAAoB;QAC1B,KAAK,EAAE,IAAI;QACX,QAAQ,EAAE,IAAI;KACf,CAAC;;+CAC+B;AAOjC;IALC,IAAA,kBAAK,EAAC;QACL,IAAI,EAAE,uCAAkB;QACxB,KAAK,EAAE,IAAI;QACX,QAAQ,EAAE,IAAI;KACf,CAAC;;6CAC2B;AAM7B;IAJC,IAAA,kBAAK,EAAC;QACL,IAAI,EAAE,mDAAwB;QAC9B,QAAQ,EAAE,IAAI;KACf,CAAC;8BACW,mDAAwB;kDAAC;AAQtC;IANC,IAAA,kBAAK,EAAC;QACL,IAAI,EAAE,MAAM;QACZ,KAAK,EAAE,IAAI;QACX,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE,IAAI;KACrB,CAAC;8BACO,KAAK;8CAAU"}
|
package/dist/dto/index.d.ts
CHANGED
package/dist/dto/index.js
CHANGED
|
@@ -23,4 +23,6 @@ __exportStar(require("./ListResponseCursorDto"), exports);
|
|
|
23
23
|
__exportStar(require("./ListResponseDto"), exports);
|
|
24
24
|
__exportStar(require("./ProxyDto"), exports);
|
|
25
25
|
__exportStar(require("./UpdateRequestDto"), exports);
|
|
26
|
+
__exportStar(require("./GetOneRequestDto"), exports);
|
|
27
|
+
__exportStar(require("./GetOneResponseDto"), exports);
|
|
26
28
|
//# sourceMappingURL=index.js.map
|
package/dist/dto/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,mDAAiC;AACjC,yDAAuC;AACvC,6DAA2C;AAC3C,uDAAqC;AACrC,0DAAwC;AACxC,oDAAkC;AAClC,6CAA2B;AAC3B,qDAAmC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,mDAAiC;AACjC,yDAAuC;AACvC,6DAA2C;AAC3C,uDAAqC;AACrC,0DAAwC;AACxC,oDAAkC;AAClC,6CAA2B;AAC3B,qDAAmC;AACnC,qDAAmC;AACnC,sDAAoC"}
|
package/package.json
CHANGED