@nest-boot/auth 7.0.0 → 7.2.0
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/adapters/mikro-orm-adapter.d.ts +23 -0
- package/dist/adapters/mikro-orm-adapter.js +155 -0
- package/dist/adapters/mikro-orm-adapter.js.map +1 -0
- package/dist/auth-module-options.interface.d.ts +12 -0
- package/dist/auth-module-options.interface.js.map +1 -0
- package/dist/auth.constants.d.ts +2 -4
- package/dist/auth.constants.js +3 -5
- package/dist/auth.constants.js.map +1 -1
- package/dist/auth.guard.d.ts +6 -35
- package/dist/auth.guard.js +15 -102
- package/dist/auth.guard.js.map +1 -1
- package/dist/auth.interceptor.d.ts +19 -0
- package/dist/auth.interceptor.js +97 -0
- package/dist/auth.interceptor.js.map +1 -0
- package/dist/auth.middleware.d.ts +13 -0
- package/dist/auth.middleware.js +64 -0
- package/dist/auth.middleware.js.map +1 -0
- package/dist/auth.module-definition.d.ts +1 -1
- package/dist/auth.module.d.ts +11 -1
- package/dist/auth.module.js +49 -13
- package/dist/auth.module.js.map +1 -1
- package/dist/auth.service.d.ts +3 -61
- package/dist/auth.service.js +5 -109
- package/dist/auth.service.js.map +1 -1
- package/dist/auth.transaction-context.d.ts +11 -0
- package/dist/auth.transaction-context.js +28 -0
- package/dist/auth.transaction-context.js.map +1 -0
- package/dist/decorators/current-session.decorator.d.ts +1 -0
- package/dist/decorators/current-session.decorator.js +15 -0
- package/dist/decorators/current-session.decorator.js.map +1 -0
- package/dist/decorators/current-user.decorator.d.ts +1 -1
- package/dist/decorators/current-user.decorator.js +9 -4
- package/dist/decorators/current-user.decorator.js.map +1 -1
- package/dist/decorators/index.d.ts +2 -3
- package/dist/decorators/index.js +2 -3
- package/dist/decorators/index.js.map +1 -1
- package/dist/decorators/public.decorator.d.ts +2 -0
- package/dist/decorators/public.decorator.js +8 -0
- package/dist/decorators/public.decorator.js.map +1 -0
- package/dist/entities/account.entity.d.ts +16 -0
- package/dist/entities/account.entity.js +87 -0
- package/dist/entities/account.entity.js.map +1 -0
- package/dist/entities/index.d.ts +3 -1
- package/dist/entities/index.js +3 -1
- package/dist/entities/index.js.map +1 -1
- package/dist/entities/session.entity.d.ts +11 -0
- package/dist/entities/session.entity.js +68 -0
- package/dist/entities/session.entity.js.map +1 -0
- package/dist/entities/user.entity.d.ts +5 -8
- package/dist/entities/user.entity.js +31 -40
- package/dist/entities/user.entity.js.map +1 -1
- package/dist/entities/verification.entity.d.ts +9 -0
- package/dist/entities/verification.entity.js +55 -0
- package/dist/entities/verification.entity.js.map +1 -0
- package/dist/index.d.ts +1 -2
- package/dist/index.js +1 -2
- package/dist/index.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +9 -17
- package/dist/decorators/can.decorator.d.ts +0 -1
- package/dist/decorators/can.decorator.js +0 -8
- package/dist/decorators/can.decorator.js.map +0 -1
- package/dist/decorators/current-personal-access-token.decorator.d.ts +0 -1
- package/dist/decorators/current-personal-access-token.decorator.js +0 -10
- package/dist/decorators/current-personal-access-token.decorator.js.map +0 -1
- package/dist/decorators/require-auth.decorator.d.ts +0 -1
- package/dist/decorators/require-auth.decorator.js +0 -8
- package/dist/decorators/require-auth.decorator.js.map +0 -1
- package/dist/entities/personal-access-token.entity.d.ts +0 -14
- package/dist/entities/personal-access-token.entity.js +0 -72
- package/dist/entities/personal-access-token.entity.js.map +0 -1
- package/dist/interfaces/auth-module-options.interface.d.ts +0 -10
- package/dist/interfaces/auth-module-options.interface.js.map +0 -1
- package/dist/interfaces/index.d.ts +0 -1
- package/dist/interfaces/index.js +0 -18
- package/dist/interfaces/index.js.map +0 -1
- package/dist/utils/random-string.util.d.ts +0 -6
- package/dist/utils/random-string.util.js +0 -26
- package/dist/utils/random-string.util.js.map +0 -1
- /package/dist/{interfaces/auth-module-options.interface.js → auth-module-options.interface.js} +0 -0
|
@@ -0,0 +1,68 @@
|
|
|
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.BaseSession = void 0;
|
|
13
|
+
const core_1 = require("@mikro-orm/core");
|
|
14
|
+
const crypto_1 = require("crypto");
|
|
15
|
+
let BaseSession = class BaseSession extends core_1.BaseEntity {
|
|
16
|
+
constructor() {
|
|
17
|
+
super(...arguments);
|
|
18
|
+
this.id = (0, crypto_1.randomUUID)();
|
|
19
|
+
this.createdAt = new Date();
|
|
20
|
+
this.updatedAt = new Date();
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
exports.BaseSession = BaseSession;
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, core_1.PrimaryKey)({ type: core_1.t.uuid }),
|
|
26
|
+
__metadata("design:type", Object)
|
|
27
|
+
], BaseSession.prototype, "id", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, core_1.Property)({ type: core_1.t.text }),
|
|
30
|
+
(0, core_1.Unique)(),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], BaseSession.prototype, "token", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, core_1.ManyToOne)(() => "User", {
|
|
35
|
+
fieldName: "user_id",
|
|
36
|
+
mapToPk: true,
|
|
37
|
+
cascade: [core_1.Cascade.REMOVE],
|
|
38
|
+
}),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], BaseSession.prototype, "userId", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, core_1.Property)({ type: core_1.t.datetime }),
|
|
43
|
+
__metadata("design:type", Date)
|
|
44
|
+
], BaseSession.prototype, "expiresAt", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, core_1.Property)({ type: core_1.t.text, nullable: true }),
|
|
47
|
+
__metadata("design:type", Object)
|
|
48
|
+
], BaseSession.prototype, "ipAddress", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, core_1.Property)({ type: core_1.t.text, nullable: true }),
|
|
51
|
+
__metadata("design:type", Object)
|
|
52
|
+
], BaseSession.prototype, "userAgent", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, core_1.Property)({ type: core_1.t.datetime, defaultRaw: "now()" }),
|
|
55
|
+
__metadata("design:type", Object)
|
|
56
|
+
], BaseSession.prototype, "createdAt", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, core_1.Property)({
|
|
59
|
+
type: core_1.t.datetime,
|
|
60
|
+
defaultRaw: "now()",
|
|
61
|
+
onUpdate: () => new Date(),
|
|
62
|
+
}),
|
|
63
|
+
__metadata("design:type", Object)
|
|
64
|
+
], BaseSession.prototype, "updatedAt", void 0);
|
|
65
|
+
exports.BaseSession = BaseSession = __decorate([
|
|
66
|
+
(0, core_1.Entity)({ abstract: true })
|
|
67
|
+
], BaseSession);
|
|
68
|
+
//# sourceMappingURL=session.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"session.entity.js","sourceRoot":"","sources":["../../src/entities/session.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAUyB;AACzB,mCAAoC;AAG7B,IAAe,WAAW,GAA1B,MAAe,WAAY,SAAQ,iBAAU;IAA7C;;QAEL,OAAE,GAAgB,IAAA,mBAAU,GAAE,CAAC;QAuB/B,cAAS,GAAc,IAAI,IAAI,EAAE,CAAC;QAOlC,cAAS,GAAc,IAAI,IAAI,EAAE,CAAC;IACpC,CAAC;CAAA,CAAA;AAjCqB,kCAAW;AAE/B;IADC,IAAA,iBAAU,EAAC,EAAE,IAAI,EAAE,QAAC,CAAC,IAAI,EAAE,CAAC;;uCACE;AAI/B;IAFC,IAAA,eAAQ,EAAC,EAAE,IAAI,EAAE,QAAC,CAAC,IAAI,EAAE,CAAC;IAC1B,IAAA,aAAM,GAAE;;0CACM;AAOf;IALC,IAAA,gBAAS,EAAC,GAAG,EAAE,CAAC,MAAM,EAAE;QACvB,SAAS,EAAE,SAAS;QACpB,OAAO,EAAE,IAAI;QACb,OAAO,EAAE,CAAC,cAAO,CAAC,MAAM,CAAC;KAC1B,CAAC;;2CACc;AAGhB;IADC,IAAA,eAAQ,EAAC,EAAE,IAAI,EAAE,QAAC,CAAC,QAAQ,EAAE,CAAC;8BACnB,IAAI;8CAAC;AAGjB;IADC,IAAA,eAAQ,EAAC,EAAE,IAAI,EAAE,QAAC,CAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8CACnB;AAGxB;IADC,IAAA,eAAQ,EAAC,EAAE,IAAI,EAAE,QAAC,CAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8CACnB;AAGxB;IADC,IAAA,eAAQ,EAAC,EAAE,IAAI,EAAE,QAAC,CAAC,QAAQ,EAAE,UAAU,EAAE,OAAO,EAAE,CAAC;;8CAClB;AAOlC;IALC,IAAA,eAAQ,EAAC;QACR,IAAI,EAAE,QAAC,CAAC,QAAQ;QAChB,UAAU,EAAE,OAAO;QACnB,QAAQ,EAAE,GAAG,EAAE,CAAC,IAAI,IAAI,EAAE;KAC3B,CAAC;;8CACgC;sBAhCd,WAAW;IADhC,IAAA,aAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;GACL,WAAW,CAiChC"}
|
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
constructor(data: Pick<User, "id" | "name" | "email" | "password"> & Partial<Pick<User, "permissions" | "createdAt" | "updatedAt" | "personalAccessTokens">>);
|
|
5
|
-
id: string;
|
|
1
|
+
import { BaseEntity, Opt } from "@mikro-orm/core";
|
|
2
|
+
export declare abstract class BaseUser extends BaseEntity {
|
|
3
|
+
id: Opt<string>;
|
|
6
4
|
name: string;
|
|
7
5
|
email: string;
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
emailVerified: boolean;
|
|
7
|
+
image?: Opt<string>;
|
|
10
8
|
createdAt: Opt<Date>;
|
|
11
9
|
updatedAt: Opt<Date>;
|
|
12
|
-
personalAccessTokens: Collection<PersonalAccessToken, object>;
|
|
13
10
|
}
|
|
@@ -9,61 +9,52 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
12
|
+
exports.BaseUser = void 0;
|
|
13
13
|
const core_1 = require("@mikro-orm/core");
|
|
14
|
-
const
|
|
15
|
-
let
|
|
16
|
-
constructor(
|
|
17
|
-
|
|
14
|
+
const crypto_1 = require("crypto");
|
|
15
|
+
let BaseUser = class BaseUser extends core_1.BaseEntity {
|
|
16
|
+
constructor() {
|
|
17
|
+
super(...arguments);
|
|
18
|
+
this.id = (0, crypto_1.randomUUID)();
|
|
18
19
|
this.createdAt = new Date();
|
|
19
20
|
this.updatedAt = new Date();
|
|
20
|
-
this.personalAccessTokens = new core_1.Collection(this);
|
|
21
|
-
this.id = data.id;
|
|
22
|
-
this.name = data.name;
|
|
23
|
-
this.email = data.email;
|
|
24
|
-
this.password = data.password;
|
|
25
|
-
data.permissions !== void 0 && (this.permissions = data.permissions);
|
|
26
|
-
data.createdAt !== void 0 && (this.createdAt = data.createdAt);
|
|
27
|
-
data.updatedAt !== void 0 && (this.updatedAt = data.updatedAt);
|
|
28
|
-
data.personalAccessTokens !== void 0 &&
|
|
29
|
-
(this.personalAccessTokens = data.personalAccessTokens);
|
|
30
21
|
}
|
|
31
22
|
};
|
|
32
|
-
exports.
|
|
23
|
+
exports.BaseUser = BaseUser;
|
|
33
24
|
__decorate([
|
|
34
|
-
(0, core_1.PrimaryKey)(),
|
|
35
|
-
__metadata("design:type",
|
|
36
|
-
],
|
|
37
|
-
__decorate([
|
|
38
|
-
(0, core_1.Property)({ type: core_1.t.string }),
|
|
39
|
-
__metadata("design:type", String)
|
|
40
|
-
], User.prototype, "name", void 0);
|
|
25
|
+
(0, core_1.PrimaryKey)({ type: core_1.t.uuid }),
|
|
26
|
+
__metadata("design:type", Object)
|
|
27
|
+
], BaseUser.prototype, "id", void 0);
|
|
41
28
|
__decorate([
|
|
42
|
-
(0, core_1.Property)({ type: core_1.t.
|
|
29
|
+
(0, core_1.Property)({ type: core_1.t.text }),
|
|
43
30
|
__metadata("design:type", String)
|
|
44
|
-
],
|
|
31
|
+
], BaseUser.prototype, "name", void 0);
|
|
45
32
|
__decorate([
|
|
46
|
-
(0, core_1.Property)({ type: core_1.t.
|
|
33
|
+
(0, core_1.Property)({ type: core_1.t.text }),
|
|
34
|
+
(0, core_1.Unique)(),
|
|
47
35
|
__metadata("design:type", String)
|
|
48
|
-
],
|
|
36
|
+
], BaseUser.prototype, "email", void 0);
|
|
49
37
|
__decorate([
|
|
50
|
-
(0, core_1.Property)({ type: core_1.t.
|
|
51
|
-
__metadata("design:type",
|
|
52
|
-
],
|
|
38
|
+
(0, core_1.Property)({ type: core_1.t.boolean, default: false }),
|
|
39
|
+
__metadata("design:type", Boolean)
|
|
40
|
+
], BaseUser.prototype, "emailVerified", void 0);
|
|
53
41
|
__decorate([
|
|
54
|
-
(0, core_1.Property)(),
|
|
42
|
+
(0, core_1.Property)({ type: core_1.t.text, nullable: true }),
|
|
55
43
|
__metadata("design:type", Object)
|
|
56
|
-
],
|
|
44
|
+
], BaseUser.prototype, "image", void 0);
|
|
57
45
|
__decorate([
|
|
58
|
-
(0, core_1.Property)(),
|
|
46
|
+
(0, core_1.Property)({ type: core_1.t.datetime, defaultRaw: "now()" }),
|
|
59
47
|
__metadata("design:type", Object)
|
|
60
|
-
],
|
|
48
|
+
], BaseUser.prototype, "createdAt", void 0);
|
|
61
49
|
__decorate([
|
|
62
|
-
(0, core_1.
|
|
50
|
+
(0, core_1.Property)({
|
|
51
|
+
type: core_1.t.datetime,
|
|
52
|
+
defaultRaw: "now()",
|
|
53
|
+
onUpdate: () => new Date(),
|
|
54
|
+
}),
|
|
63
55
|
__metadata("design:type", Object)
|
|
64
|
-
],
|
|
65
|
-
exports.
|
|
66
|
-
(0, core_1.Entity)()
|
|
67
|
-
|
|
68
|
-
], User);
|
|
56
|
+
], BaseUser.prototype, "updatedAt", void 0);
|
|
57
|
+
exports.BaseUser = BaseUser = __decorate([
|
|
58
|
+
(0, core_1.Entity)({ abstract: true })
|
|
59
|
+
], BaseUser);
|
|
69
60
|
//# sourceMappingURL=user.entity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.entity.js","sourceRoot":"","sources":["../../src/entities/user.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAQyB;
|
|
1
|
+
{"version":3,"file":"user.entity.js","sourceRoot":"","sources":["../../src/entities/user.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAQyB;AACzB,mCAAoC;AAG7B,IAAe,QAAQ,GAAvB,MAAe,QAAS,SAAQ,iBAAU;IAA1C;;QAEL,OAAE,GAAgB,IAAA,mBAAU,GAAE,CAAC;QAgB/B,cAAS,GAAc,IAAI,IAAI,EAAE,CAAC;QAOlC,cAAS,GAAc,IAAI,IAAI,EAAE,CAAC;IACpC,CAAC;CAAA,CAAA;AA1BqB,4BAAQ;AAE5B;IADC,IAAA,iBAAU,EAAC,EAAE,IAAI,EAAE,QAAC,CAAC,IAAI,EAAE,CAAC;;oCACE;AAG/B;IADC,IAAA,eAAQ,EAAC,EAAE,IAAI,EAAE,QAAC,CAAC,IAAI,EAAE,CAAC;;sCACb;AAId;IAFC,IAAA,eAAQ,EAAC,EAAE,IAAI,EAAE,QAAC,CAAC,IAAI,EAAE,CAAC;IAC1B,IAAA,aAAM,GAAE;;uCACM;AAGf;IADC,IAAA,eAAQ,EAAC,EAAE,IAAI,EAAE,QAAC,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;+CACtB;AAGxB;IADC,IAAA,eAAQ,EAAC,EAAE,IAAI,EAAE,QAAC,CAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uCACvB;AAGpB;IADC,IAAA,eAAQ,EAAC,EAAE,IAAI,EAAE,QAAC,CAAC,QAAQ,EAAE,UAAU,EAAE,OAAO,EAAE,CAAC;;2CAClB;AAOlC;IALC,IAAA,eAAQ,EAAC;QACR,IAAI,EAAE,QAAC,CAAC,QAAQ;QAChB,UAAU,EAAE,OAAO;QACnB,QAAQ,EAAE,GAAG,EAAE,CAAC,IAAI,IAAI,EAAE;KAC3B,CAAC;;2CACgC;mBAzBd,QAAQ;IAD7B,IAAA,aAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;GACL,QAAQ,CA0B7B"}
|
|
@@ -0,0 +1,55 @@
|
|
|
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.BaseVerification = void 0;
|
|
13
|
+
const core_1 = require("@mikro-orm/core");
|
|
14
|
+
const crypto_1 = require("crypto");
|
|
15
|
+
let BaseVerification = class BaseVerification extends core_1.BaseEntity {
|
|
16
|
+
constructor() {
|
|
17
|
+
super(...arguments);
|
|
18
|
+
this.id = (0, crypto_1.randomUUID)();
|
|
19
|
+
this.createdAt = new Date();
|
|
20
|
+
this.updatedAt = new Date();
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
exports.BaseVerification = BaseVerification;
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, core_1.PrimaryKey)({ type: core_1.t.uuid }),
|
|
26
|
+
__metadata("design:type", Object)
|
|
27
|
+
], BaseVerification.prototype, "id", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, core_1.Property)({ type: core_1.t.text }),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], BaseVerification.prototype, "identifier", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, core_1.Property)({ type: core_1.t.text }),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], BaseVerification.prototype, "value", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, core_1.Property)({ type: core_1.t.datetime }),
|
|
38
|
+
__metadata("design:type", Date)
|
|
39
|
+
], BaseVerification.prototype, "expiresAt", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, core_1.Property)({ type: core_1.t.datetime, defaultRaw: "now()" }),
|
|
42
|
+
__metadata("design:type", Object)
|
|
43
|
+
], BaseVerification.prototype, "createdAt", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, core_1.Property)({
|
|
46
|
+
type: core_1.t.datetime,
|
|
47
|
+
defaultRaw: "now()",
|
|
48
|
+
onUpdate: () => new Date(),
|
|
49
|
+
}),
|
|
50
|
+
__metadata("design:type", Object)
|
|
51
|
+
], BaseVerification.prototype, "updatedAt", void 0);
|
|
52
|
+
exports.BaseVerification = BaseVerification = __decorate([
|
|
53
|
+
(0, core_1.Entity)({ abstract: true })
|
|
54
|
+
], BaseVerification);
|
|
55
|
+
//# sourceMappingURL=verification.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"verification.entity.js","sourceRoot":"","sources":["../../src/entities/verification.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAOyB;AACzB,mCAAoC;AAG7B,IAAe,gBAAgB,GAA/B,MAAe,gBAAiB,SAAQ,iBAAU;IAAlD;;QAEL,OAAE,GAAgB,IAAA,mBAAU,GAAE,CAAC;QAY/B,cAAS,GAAc,IAAI,IAAI,EAAE,CAAC;QAOlC,cAAS,GAAc,IAAI,IAAI,EAAE,CAAC;IACpC,CAAC;CAAA,CAAA;AAtBqB,4CAAgB;AAEpC;IADC,IAAA,iBAAU,EAAC,EAAE,IAAI,EAAE,QAAC,CAAC,IAAI,EAAE,CAAC;;4CACE;AAG/B;IADC,IAAA,eAAQ,EAAC,EAAE,IAAI,EAAE,QAAC,CAAC,IAAI,EAAE,CAAC;;oDACP;AAGpB;IADC,IAAA,eAAQ,EAAC,EAAE,IAAI,EAAE,QAAC,CAAC,IAAI,EAAE,CAAC;;+CACZ;AAGf;IADC,IAAA,eAAQ,EAAC,EAAE,IAAI,EAAE,QAAC,CAAC,QAAQ,EAAE,CAAC;8BACnB,IAAI;mDAAC;AAGjB;IADC,IAAA,eAAQ,EAAC,EAAE,IAAI,EAAE,QAAC,CAAC,QAAQ,EAAE,UAAU,EAAE,OAAO,EAAE,CAAC;;mDAClB;AAOlC;IALC,IAAA,eAAQ,EAAC;QACR,IAAI,EAAE,QAAC,CAAC,QAAQ;QAChB,UAAU,EAAE,OAAO;QACnB,QAAQ,EAAE,GAAG,EAAE,CAAC,IAAI,IAAI,EAAE;KAC3B,CAAC;;mDACgC;2BArBd,gBAAgB;IADrC,IAAA,aAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;GACL,gBAAgB,CAsBrC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
export * from "./auth.constants";
|
|
2
2
|
export * from "./auth.guard";
|
|
3
3
|
export * from "./auth.module";
|
|
4
|
-
export * from "./auth.
|
|
4
|
+
export * from "./auth-module-options.interface";
|
|
5
5
|
export * from "./decorators";
|
|
6
6
|
export * from "./entities";
|
|
7
|
-
export * from "./interfaces";
|
package/dist/index.js
CHANGED
|
@@ -17,8 +17,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./auth.constants"), exports);
|
|
18
18
|
__exportStar(require("./auth.guard"), exports);
|
|
19
19
|
__exportStar(require("./auth.module"), exports);
|
|
20
|
-
__exportStar(require("./auth.
|
|
20
|
+
__exportStar(require("./auth-module-options.interface"), exports);
|
|
21
21
|
__exportStar(require("./decorators"), exports);
|
|
22
22
|
__exportStar(require("./entities"), exports);
|
|
23
|
-
__exportStar(require("./interfaces"), exports);
|
|
24
23
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC;AACjC,+CAA6B;AAC7B,gDAA8B;AAC9B,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC;AACjC,+CAA6B;AAC7B,gDAA8B;AAC9B,kEAAgD;AAChD,+CAA6B;AAC7B,6CAA2B"}
|