@hedhog/setting 0.0.1 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/dto/delete.dto.d.ts.map +1 -1
- package/dist/dto/delete.dto.js +1 -2
- package/dist/dto/delete.dto.js.map +1 -1
- package/dist/settings.module.d.ts +1 -1
- package/dist/settings.module.d.ts.map +1 -1
- package/dist/settings.module.js +5 -5
- package/dist/settings.module.js.map +1 -1
- package/package.json +1 -1
- package/src/dto/delete.dto.ts +2 -8
- package/src/settings.module.ts +1 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"delete.dto.d.ts","sourceRoot":"","sources":["../../src/dto/delete.dto.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"delete.dto.d.ts","sourceRoot":"","sources":["../../src/dto/delete.dto.ts"],"names":[],"mappings":"AAEA,qBAAa,SAAS;IAIpB,GAAG,EAAE,MAAM,EAAE,CAAC;CACf"}
|
package/dist/dto/delete.dto.js
CHANGED
@@ -16,9 +16,8 @@ class DeleteDTO {
|
|
16
16
|
exports.DeleteDTO = DeleteDTO;
|
17
17
|
__decorate([
|
18
18
|
(0, class_validator_1.IsArray)(),
|
19
|
-
(0, class_validator_1.ArrayNotEmpty)(),
|
20
19
|
(0, class_validator_1.ArrayMinSize)(1),
|
21
|
-
(0, class_validator_1.
|
20
|
+
(0, class_validator_1.IsInt)({ each: true }),
|
22
21
|
__metadata("design:type", Array)
|
23
22
|
], DeleteDTO.prototype, "ids", void 0);
|
24
23
|
//# sourceMappingURL=delete.dto.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"delete.dto.js","sourceRoot":"","sources":["../../src/dto/delete.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
1
|
+
{"version":3,"file":"delete.dto.js","sourceRoot":"","sources":["../../src/dto/delete.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA+D;AAE/D,MAAa,SAAS;CAKrB;AALD,8BAKC;AADC;IAHC,IAAA,yBAAO,GAAE;IACT,IAAA,8BAAY,EAAC,CAAC,CAAC;IACf,IAAA,uBAAK,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;sCACR"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"settings.module.d.ts","sourceRoot":"","sources":["../src/settings.module.ts"],"names":[],"mappings":"AAOA,qBAUa,
|
1
|
+
{"version":3,"file":"settings.module.d.ts","sourceRoot":"","sources":["../src/settings.module.ts"],"names":[],"mappings":"AAOA,qBAUa,aAAa;CAAG"}
|
package/dist/settings.module.js
CHANGED
@@ -6,17 +6,17 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
6
6
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
7
7
|
};
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
9
|
-
exports.
|
9
|
+
exports.SettingModule = void 0;
|
10
10
|
const auth_1 = require("@hedhog/auth");
|
11
11
|
const pagination_1 = require("@hedhog/pagination");
|
12
12
|
const prisma_1 = require("@hedhog/prisma");
|
13
13
|
const common_1 = require("@nestjs/common");
|
14
14
|
const settings_controller_1 = require("./settings.controller");
|
15
15
|
const settings_service_1 = require("./settings.service");
|
16
|
-
let
|
16
|
+
let SettingModule = class SettingModule {
|
17
17
|
};
|
18
|
-
exports.
|
19
|
-
exports.
|
18
|
+
exports.SettingModule = SettingModule;
|
19
|
+
exports.SettingModule = SettingModule = __decorate([
|
20
20
|
(0, common_1.Module)({
|
21
21
|
providers: [settings_service_1.SettingsService],
|
22
22
|
exports: [settings_service_1.SettingsService],
|
@@ -27,5 +27,5 @@ exports.SettingsModule = SettingsModule = __decorate([
|
|
27
27
|
(0, common_1.forwardRef)(() => pagination_1.PaginationModule),
|
28
28
|
],
|
29
29
|
})
|
30
|
-
],
|
30
|
+
], SettingModule);
|
31
31
|
//# sourceMappingURL=settings.module.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"settings.module.js","sourceRoot":"","sources":["../src/settings.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,uCAA0C;AAC1C,mDAAsD;AACtD,2CAA8C;AAC9C,2CAAoD;AACpD,+DAA2D;AAC3D,yDAAqD;AAY9C,IAAM,
|
1
|
+
{"version":3,"file":"settings.module.js","sourceRoot":"","sources":["../src/settings.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,uCAA0C;AAC1C,mDAAsD;AACtD,2CAA8C;AAC9C,2CAAoD;AACpD,+DAA2D;AAC3D,yDAAqD;AAY9C,IAAM,aAAa,GAAnB,MAAM,aAAa;CAAG,CAAA;AAAhB,sCAAa;wBAAb,aAAa;IAVzB,IAAA,eAAM,EAAC;QACN,SAAS,EAAE,CAAC,kCAAe,CAAC;QAC5B,OAAO,EAAE,CAAC,kCAAe,CAAC;QAC1B,WAAW,EAAE,CAAC,wCAAkB,CAAC;QACjC,OAAO,EAAE;YACP,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,iBAAU,CAAC;YAC5B,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,qBAAY,CAAC;YAC9B,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,6BAAgB,CAAC;SACnC;KACF,CAAC;GACW,aAAa,CAAG"}
|
package/package.json
CHANGED
package/src/dto/delete.dto.ts
CHANGED
@@ -1,14 +1,8 @@
|
|
1
|
-
import {
|
2
|
-
ArrayMinSize,
|
3
|
-
ArrayNotEmpty,
|
4
|
-
IsArray,
|
5
|
-
IsNumber,
|
6
|
-
} from 'class-validator';
|
1
|
+
import { ArrayMinSize, IsArray, IsInt } from 'class-validator';
|
7
2
|
|
8
3
|
export class DeleteDTO {
|
9
4
|
@IsArray()
|
10
|
-
@ArrayNotEmpty()
|
11
5
|
@ArrayMinSize(1)
|
12
|
-
@
|
6
|
+
@IsInt({ each: true })
|
13
7
|
ids: number[];
|
14
8
|
}
|
package/src/settings.module.ts
CHANGED