@hedhog/setting 0.0.2 → 0.0.4
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/migrations/index.d.ts +1 -1
- package/dist/migrations/index.d.ts.map +1 -1
- package/dist/migrations/index.js +3 -3
- package/dist/migrations/index.js.map +1 -1
- package/package.json +1 -1
- package/src/dto/delete.dto.ts +2 -8
- package/src/migrations/index.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,5 +1,5 @@
|
|
1
1
|
import { MigrationInterface, QueryRunner } from 'typeorm';
|
2
|
-
export declare class
|
2
|
+
export declare class Migrate implements MigrationInterface {
|
3
3
|
up(queryRunner: QueryRunner): Promise<void>;
|
4
4
|
down(queryRunner: QueryRunner): Promise<void>;
|
5
5
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/migrations/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,WAAW,EAGZ,MAAM,SAAS,CAAC;AAGjB,qBAAa,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/migrations/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,WAAW,EAGZ,MAAM,SAAS,CAAC;AAGjB,qBAAa,OAAQ,YAAW,kBAAkB;IACnC,EAAE,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;IA+D3C,IAAI,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;CAI3D"}
|
package/dist/migrations/index.js
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
3
|
+
exports.Migrate = void 0;
|
4
4
|
const typeorm_1 = require("typeorm");
|
5
5
|
const utils_1 = require("@hedhog/utils");
|
6
|
-
class
|
6
|
+
class Migrate {
|
7
7
|
async up(queryRunner) {
|
8
8
|
await queryRunner.createTable(new typeorm_1.Table({
|
9
9
|
name: 'settings',
|
@@ -62,5 +62,5 @@ class CreateSettings1726152718000 {
|
|
62
62
|
await queryRunner.dropTable('settings');
|
63
63
|
}
|
64
64
|
}
|
65
|
-
exports.
|
65
|
+
exports.Migrate = Migrate;
|
66
66
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/migrations/index.ts"],"names":[],"mappings":";;;AAAA,qCAKiB;AACjB,yCAA0D;AAE1D,MAAa,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/migrations/index.ts"],"names":[],"mappings":";;;AAAA,qCAKiB;AACjB,yCAA0D;AAE1D,MAAa,OAAO;IACX,KAAK,CAAC,EAAE,CAAC,WAAwB;QACtC,MAAM,WAAW,CAAC,WAAW,CAC3B,IAAI,eAAK,CAAC;YACR,IAAI,EAAE,UAAU;YAChB,OAAO,EAAE;gBACP,IAAA,gBAAQ,GAAE;gBACV;oBACE,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,SAAS;iBAChB;gBACD,IAAA,uBAAe,GAAE;gBACjB,IAAA,uBAAe,EAAC,YAAY,CAAC;aAC9B;SACF,CAAC,CACH,CAAC;QAEF,MAAM,WAAW,CAAC,WAAW,CAC3B,IAAI,eAAK,CAAC;YACR,IAAI,EAAE,gBAAgB;YACtB,OAAO,EAAE;gBACP,IAAA,gBAAQ,GAAE;gBACV;oBACE,IAAI,EAAE,OAAO;oBACb,IAAI,EAAE,SAAS;oBACf,MAAM,EAAE,MAAM;iBACf;gBACD;oBACE,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,SAAS;oBACf,QAAQ,EAAE,IAAI;iBACf;gBACD;oBACE,IAAI,EAAE,aAAa;oBACnB,IAAI,EAAE,SAAS;oBACf,UAAU,EAAE,IAAI;iBACjB;gBACD;oBACE,IAAI,EAAE,OAAO;oBACb,IAAI,EAAE,SAAS;oBACf,UAAU,EAAE,IAAI;iBACjB;gBACD;oBACE,IAAI,EAAE,YAAY;oBAClB,IAAI,EAAE,KAAK;iBACZ;gBACD,IAAA,uBAAe,GAAE;gBACjB,IAAA,uBAAe,EAAC,YAAY,CAAC;aAC9B;SACF,CAAC,CACH,CAAC;QAEF,2BAA2B;QAC3B,MAAM,WAAW,CAAC,gBAAgB,CAChC,gBAAgB,EAChB,IAAI,yBAAe,CAAC;YAClB,WAAW,EAAE,CAAC,YAAY,CAAC;YAC3B,qBAAqB,EAAE,CAAC,IAAI,CAAC;YAC7B,mBAAmB,EAAE,UAAU;YAC/B,QAAQ,EAAE,SAAS;SACpB,CAAC,CACH,CAAC;IACJ,CAAC;IAEM,KAAK,CAAC,IAAI,CAAC,WAAwB;QACxC,MAAM,WAAW,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;QAC9C,MAAM,WAAW,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;IAC1C,CAAC;CACF;AApED,0BAoEC"}
|
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/migrations/index.ts
CHANGED
@@ -6,7 +6,7 @@ import {
|
|
6
6
|
} from 'typeorm';
|
7
7
|
import { idColumn, timestampColumn } from '@hedhog/utils';
|
8
8
|
|
9
|
-
export class
|
9
|
+
export class Migrate implements MigrationInterface {
|
10
10
|
public async up(queryRunner: QueryRunner): Promise<void> {
|
11
11
|
await queryRunner.createTable(
|
12
12
|
new Table({
|