nestjs-base 1.0.22 → 1.0.23
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/entities/hashed-password-column.d.ts +1 -0
- package/dist/entities/hashed-password-column.js +14 -0
- package/dist/entities/hashed-password-column.js.map +1 -0
- package/dist/entities/hashed-password-property.d.ts +1 -0
- package/dist/entities/hashed-password-property.js +14 -0
- package/dist/entities/hashed-password-property.js.map +1 -0
- package/dist/entities/password-column.d.ts +1 -0
- package/dist/entities/password-column.js +14 -0
- package/dist/entities/password-column.js.map +1 -0
- package/dist/entities/password-property.js +2 -2
- package/dist/entities/password-property.js.map +1 -1
- package/dist/entities/password-updated-at-column.d.ts +1 -0
- package/dist/entities/password-updated-at-column.js +14 -0
- package/dist/entities/password-updated-at-column.js.map +1 -0
- package/dist/entities/password-updated-at-property.d.ts +1 -0
- package/dist/entities/password-updated-at-property.js +14 -0
- package/dist/entities/password-updated-at-property.js.map +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
@@ -0,0 +1 @@
|
|
1
|
+
export declare const HashedPasswordColumn: (comment?: string) => (target: any, propertyName: string) => void;
|
@@ -0,0 +1,14 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.HashedPasswordColumn = void 0;
|
4
|
+
const sequelize_typescript_1 = require("sequelize-typescript");
|
5
|
+
const HashedPasswordColumn = (comment = "密码(加密后)") => {
|
6
|
+
return (target, propertyName) => {
|
7
|
+
(0, sequelize_typescript_1.Column)({
|
8
|
+
type: sequelize_typescript_1.DataType.VIRTUAL,
|
9
|
+
comment,
|
10
|
+
})(target, propertyName);
|
11
|
+
};
|
12
|
+
};
|
13
|
+
exports.HashedPasswordColumn = HashedPasswordColumn;
|
14
|
+
//# sourceMappingURL=hashed-password-column.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"hashed-password-column.js","sourceRoot":"","sources":["../../src/entities/hashed-password-column.ts"],"names":[],"mappings":";;;AAAA,+DAAwD;AAEjD,MAAM,oBAAoB,GAAG,CAAC,UAAkB,SAAS,EAAE,EAAE;IAClE,OAAO,CAAC,MAAW,EAAE,YAAoB,EAAE,EAAE;QAC3C,IAAA,6BAAM,EAAC;YACL,IAAI,EAAE,+BAAQ,CAAC,OAAO;YACtB,OAAO;SACR,CAAC,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;IAC3B,CAAC,CAAC;AACJ,CAAC,CAAC;AAPW,QAAA,oBAAoB,wBAO/B"}
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const HashedPasswordProperty: (description?: string) => (target: any, key: string) => void;
|
@@ -0,0 +1,14 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.HashedPasswordProperty = void 0;
|
4
|
+
const swagger_1 = require("@nestjs/swagger");
|
5
|
+
const HashedPasswordProperty = (description = "密码(加密后)") => {
|
6
|
+
return (target, key) => {
|
7
|
+
(0, swagger_1.ApiProperty)({
|
8
|
+
description,
|
9
|
+
example: "$2a$10$JwaFlTfBWQsKmQ2riQtNbeptPJsYWd4z4MaMvCI.lQoIfTgGBBzLa",
|
10
|
+
})(target, key);
|
11
|
+
};
|
12
|
+
};
|
13
|
+
exports.HashedPasswordProperty = HashedPasswordProperty;
|
14
|
+
//# sourceMappingURL=hashed-password-property.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"hashed-password-property.js","sourceRoot":"","sources":["../../src/entities/hashed-password-property.ts"],"names":[],"mappings":";;;AAAA,6CAA8C;AAEvC,MAAM,sBAAsB,GAAG,CACpC,cAAsB,SAAS,EAC/B,EAAE;IACF,OAAO,CAAC,MAAW,EAAE,GAAW,EAAE,EAAE;QAClC,IAAA,qBAAW,EAAC;YACV,WAAW;YACX,OAAO,EAAE,8DAA8D;SACxE,CAAC,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAClB,CAAC,CAAC;AACJ,CAAC,CAAC;AATW,QAAA,sBAAsB,0BASjC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const PasswordColumn: (comment?: string) => (target: any, propertyName: string) => void;
|
@@ -0,0 +1,14 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.PasswordColumn = void 0;
|
4
|
+
const sequelize_typescript_1 = require("sequelize-typescript");
|
5
|
+
const PasswordColumn = (comment = "密码(明文)") => {
|
6
|
+
return (target, propertyName) => {
|
7
|
+
(0, sequelize_typescript_1.Column)({
|
8
|
+
type: sequelize_typescript_1.DataType.VIRTUAL,
|
9
|
+
comment,
|
10
|
+
})(target, propertyName);
|
11
|
+
};
|
12
|
+
};
|
13
|
+
exports.PasswordColumn = PasswordColumn;
|
14
|
+
//# sourceMappingURL=password-column.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"password-column.js","sourceRoot":"","sources":["../../src/entities/password-column.ts"],"names":[],"mappings":";;;AAAA,+DAAwD;AAEjD,MAAM,cAAc,GAAG,CAAC,UAAkB,QAAQ,EAAE,EAAE;IAC3D,OAAO,CAAC,MAAW,EAAE,YAAoB,EAAE,EAAE;QAC3C,IAAA,6BAAM,EAAC;YACL,IAAI,EAAE,+BAAQ,CAAC,OAAO;YACtB,OAAO;SACR,CAAC,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;IAC3B,CAAC,CAAC;AACJ,CAAC,CAAC;AAPW,QAAA,cAAc,kBAOzB"}
|
@@ -2,11 +2,11 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.PasswordProperty = void 0;
|
4
4
|
const swagger_1 = require("@nestjs/swagger");
|
5
|
-
const PasswordProperty = (description = "
|
5
|
+
const PasswordProperty = (description = "密码(明文)") => {
|
6
6
|
return (target, key) => {
|
7
7
|
(0, swagger_1.ApiProperty)({
|
8
8
|
description,
|
9
|
-
example: "
|
9
|
+
example: "aaa@AAA111",
|
10
10
|
})(target, key);
|
11
11
|
};
|
12
12
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"password-property.js","sourceRoot":"","sources":["../../src/entities/password-property.ts"],"names":[],"mappings":";;;AAAA,6CAA8C;AAEvC,MAAM,gBAAgB,GAAG,CAAC,cAAsB,
|
1
|
+
{"version":3,"file":"password-property.js","sourceRoot":"","sources":["../../src/entities/password-property.ts"],"names":[],"mappings":";;;AAAA,6CAA8C;AAEvC,MAAM,gBAAgB,GAAG,CAAC,cAAsB,QAAQ,EAAE,EAAE;IACjE,OAAO,CAAC,MAAW,EAAE,GAAW,EAAE,EAAE;QAClC,IAAA,qBAAW,EAAC;YACV,WAAW;YACX,OAAO,EAAE,YAAY;SACtB,CAAC,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAClB,CAAC,CAAC;AACJ,CAAC,CAAC;AAPW,QAAA,gBAAgB,oBAO3B"}
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const PasswordUpdatedAtColumn: (comment?: string) => (target: any, propertyName: string) => void;
|
@@ -0,0 +1,14 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.PasswordUpdatedAtColumn = void 0;
|
4
|
+
const sequelize_typescript_1 = require("sequelize-typescript");
|
5
|
+
const PasswordUpdatedAtColumn = (comment = "密码修改时间") => {
|
6
|
+
return (target, propertyName) => {
|
7
|
+
(0, sequelize_typescript_1.Column)({
|
8
|
+
type: sequelize_typescript_1.DataType.BIGINT({ length: 13 }),
|
9
|
+
comment,
|
10
|
+
})(target, propertyName);
|
11
|
+
};
|
12
|
+
};
|
13
|
+
exports.PasswordUpdatedAtColumn = PasswordUpdatedAtColumn;
|
14
|
+
//# sourceMappingURL=password-updated-at-column.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"password-updated-at-column.js","sourceRoot":"","sources":["../../src/entities/password-updated-at-column.ts"],"names":[],"mappings":";;;AAAA,+DAAwD;AAEjD,MAAM,uBAAuB,GAAG,CAAC,UAAkB,QAAQ,EAAE,EAAE;IACpE,OAAO,CAAC,MAAW,EAAE,YAAoB,EAAE,EAAE;QAC3C,IAAA,6BAAM,EAAC;YACL,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;YACrC,OAAO;SACR,CAAC,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;IAC3B,CAAC,CAAC;AACJ,CAAC,CAAC;AAPW,QAAA,uBAAuB,2BAOlC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const PasswordUpdatedAtProperty: (description?: string) => (target: any, key: string) => void;
|
@@ -0,0 +1,14 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.PasswordUpdatedAtProperty = void 0;
|
4
|
+
const swagger_1 = require("@nestjs/swagger");
|
5
|
+
const PasswordUpdatedAtProperty = (description = "密码修改时间") => {
|
6
|
+
return (target, key) => {
|
7
|
+
(0, swagger_1.ApiProperty)({
|
8
|
+
description,
|
9
|
+
example: 1680396178458,
|
10
|
+
})(target, key);
|
11
|
+
};
|
12
|
+
};
|
13
|
+
exports.PasswordUpdatedAtProperty = PasswordUpdatedAtProperty;
|
14
|
+
//# sourceMappingURL=password-updated-at-property.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"password-updated-at-property.js","sourceRoot":"","sources":["../../src/entities/password-updated-at-property.ts"],"names":[],"mappings":";;;AAAA,6CAA8C;AAEvC,MAAM,yBAAyB,GAAG,CACvC,cAAsB,QAAQ,EAC9B,EAAE;IACF,OAAO,CAAC,MAAW,EAAE,GAAW,EAAE,EAAE;QAClC,IAAA,qBAAW,EAAC;YACV,WAAW;YACX,OAAO,EAAE,aAAa;SACvB,CAAC,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAClB,CAAC,CAAC;AACJ,CAAC,CAAC;AATW,QAAA,yBAAyB,6BASpC"}
|
package/dist/index.d.ts
CHANGED
@@ -5,9 +5,14 @@ export * from "./dicts/gender.dict";
|
|
5
5
|
export * from "./dicts/is.dict";
|
6
6
|
export * from "./entities/add-snowflack-id-column";
|
7
7
|
export * from "./entities/add-uuid-column";
|
8
|
+
export * from "./entities/hashed-password-column";
|
9
|
+
export * from "./entities/hashed-password-property";
|
8
10
|
export * from "./entities/order-column";
|
9
11
|
export * from "./entities/order-property";
|
12
|
+
export * from "./entities/password-column";
|
10
13
|
export * from "./entities/password-property";
|
14
|
+
export * from "./entities/password-updated-at-column";
|
15
|
+
export * from "./entities/password-updated-at-property";
|
11
16
|
export * from "./entities/phone-number-property";
|
12
17
|
export * from "./entities/snowflack-id-column";
|
13
18
|
export * from "./entities/snowflack-id-property";
|
package/dist/index.js
CHANGED
@@ -21,9 +21,14 @@ __exportStar(require("./dicts/gender.dict"), exports);
|
|
21
21
|
__exportStar(require("./dicts/is.dict"), exports);
|
22
22
|
__exportStar(require("./entities/add-snowflack-id-column"), exports);
|
23
23
|
__exportStar(require("./entities/add-uuid-column"), exports);
|
24
|
+
__exportStar(require("./entities/hashed-password-column"), exports);
|
25
|
+
__exportStar(require("./entities/hashed-password-property"), exports);
|
24
26
|
__exportStar(require("./entities/order-column"), exports);
|
25
27
|
__exportStar(require("./entities/order-property"), exports);
|
28
|
+
__exportStar(require("./entities/password-column"), exports);
|
26
29
|
__exportStar(require("./entities/password-property"), exports);
|
30
|
+
__exportStar(require("./entities/password-updated-at-column"), exports);
|
31
|
+
__exportStar(require("./entities/password-updated-at-property"), exports);
|
27
32
|
__exportStar(require("./entities/phone-number-property"), exports);
|
28
33
|
__exportStar(require("./entities/snowflack-id-column"), exports);
|
29
34
|
__exportStar(require("./entities/snowflack-id-property"), exports);
|
package/dist/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gEAA8C;AAC9C,4DAA0C;AAC1C,6DAA2C;AAC3C,sDAAoC;AACpC,kDAAgC;AAChC,qEAAmD;AACnD,6DAA2C;AAC3C,0DAAwC;AACxC,4DAA0C;AAC1C,+DAA6C;AAC7C,mEAAiD;AACjD,iEAA+C;AAC/C,mEAAiD;AACjD,yDAAuC;AACvC,2DAAyC;AACzC,4DAA0C;AAC1C,6DAA2C;AAC3C,sDAAoC;AACpC,kDAAgC;AAChC,wDAAsC;AACtC,8DAA4C;AAC5C,0DAAwC;AACxC,sDAAoC;AACpC,oDAAkC;AAClC,sDAAoC;AACpC,mDAAiC;AACjC,2DAAyC;AACzC,2DAAyC;AACzC,iEAA+C;AAC/C,yEAAuD"}
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gEAA8C;AAC9C,4DAA0C;AAC1C,6DAA2C;AAC3C,sDAAoC;AACpC,kDAAgC;AAChC,qEAAmD;AACnD,6DAA2C;AAC3C,oEAAkD;AAClD,sEAAoD;AACpD,0DAAwC;AACxC,4DAA0C;AAC1C,6DAA2C;AAC3C,+DAA6C;AAC7C,wEAAsD;AACtD,0EAAwD;AACxD,mEAAiD;AACjD,iEAA+C;AAC/C,mEAAiD;AACjD,yDAAuC;AACvC,2DAAyC;AACzC,4DAA0C;AAC1C,6DAA2C;AAC3C,sDAAoC;AACpC,kDAAgC;AAChC,wDAAsC;AACtC,8DAA4C;AAC5C,0DAAwC;AACxC,sDAAoC;AACpC,oDAAkC;AAClC,sDAAoC;AACpC,mDAAiC;AACjC,2DAAyC;AACzC,2DAAyC;AACzC,iEAA+C;AAC/C,yEAAuD"}
|