rl-core-api 0.18.9 → 0.19.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/core/auth/decorators/allowPendingPassword.decorator.d.ts +3 -0
- package/dist/core/auth/decorators/allowPendingPassword.decorator.js +7 -0
- package/dist/core/auth/guards/passwordPolicy.guard.d.ts +8 -0
- package/dist/core/auth/guards/passwordPolicy.guard.js +39 -0
- package/dist/core/config/env.schema.d.ts +2 -2
- package/dist/core/config/env.schema.js +33 -3
- package/dist/core/context/requestLog.context.d.ts +1 -0
- package/dist/core/context/requestLog.context.js +7 -1
- package/dist/core/database/migrations/1789603200000-AuthTokenClient.d.ts +6 -0
- package/dist/core/database/migrations/1789603200000-AuthTokenClient.js +16 -0
- package/dist/core/database/migrations/index.js +2 -0
- package/dist/core/export/export.controller.js +0 -2
- package/dist/core/filters/appErrorCode.enum.d.ts +2 -1
- package/dist/core/filters/appErrorCode.enum.js +1 -0
- package/dist/core/images/imageFetch.service.js +79 -15
- package/dist/core/images/images.controller.js +0 -2
- package/dist/core/images/images.service.d.ts +1 -0
- package/dist/core/images/images.service.js +13 -3
- package/dist/core/queue/queueAdmin.controller.js +0 -2
- package/dist/core/utils/codedError.util.d.ts +2 -1
- package/dist/core/utils/codedError.util.js +8 -0
- package/dist/core/utils/hash.util.js +6 -1
- package/dist/features/audit/audit.module.js +5 -1
- package/dist/features/audit/domain/audit.service.d.ts +5 -2
- package/dist/features/audit/domain/audit.service.js +8 -4
- package/dist/features/audit/infra/repositories/requestLog.repository.d.ts +1 -1
- package/dist/features/audit/infra/repositories/requestLog.repository.js +11 -2
- package/dist/features/audit/presentation/audit.controller.d.ts +2 -1
- package/dist/features/audit/presentation/audit.controller.js +8 -7
- package/dist/features/audit/presentation/audit.interceptor.js +2 -2
- package/dist/features/auth/auth.module.js +4 -0
- package/dist/features/auth/domain/auth.service.d.ts +1 -2
- package/dist/features/auth/domain/auth.service.js +2 -2
- package/dist/features/auth/domain/enums/tokenClient.enum.d.ts +7 -0
- package/dist/features/auth/domain/enums/tokenClient.enum.js +13 -0
- package/dist/features/auth/domain/token.service.d.ts +1 -1
- package/dist/features/auth/domain/token.service.js +7 -1
- package/dist/features/auth/infra/schema/authToken.schema.d.ts +2 -0
- package/dist/features/auth/infra/schema/authToken.schema.js +4 -0
- package/dist/features/auth/presentation/auth.controller.d.ts +2 -2
- package/dist/features/auth/presentation/auth.controller.js +10 -7
- package/dist/features/auth/presentation/commands/password.command.d.ts +3 -0
- package/dist/features/auth/presentation/commands/password.command.js +9 -1
- package/dist/features/notifications/presentation/notifications.controller.js +0 -2
- package/dist/features/rbac/domain/rbac.catalog.js +5 -1
- package/dist/features/rbac/domain/rbac.service.d.ts +3 -1
- package/dist/features/rbac/domain/rbac.service.js +30 -2
- package/dist/features/rbac/presentation/rbac.controller.d.ts +1 -1
- package/dist/features/rbac/presentation/rbac.controller.js +4 -5
- package/dist/features/users/domain/users.service.d.ts +3 -1
- package/dist/features/users/domain/users.service.js +5 -1
- package/dist/features/users/presentation/users.controller.js +7 -17
- package/dist/index.d.ts +2 -0
- package/dist/index.js +8 -4
- package/package.json +1 -1
|
@@ -17,9 +17,9 @@ const common_1 = require("@nestjs/common");
|
|
|
17
17
|
const platform_express_1 = require("@nestjs/platform-express");
|
|
18
18
|
const swagger_1 = require("@nestjs/swagger");
|
|
19
19
|
const multer_1 = require("multer");
|
|
20
|
+
const allowPendingPassword_decorator_1 = require("../../../core/auth/decorators/allowPendingPassword.decorator");
|
|
20
21
|
const currentUser_decorator_1 = require("../../../core/auth/decorators/currentUser.decorator");
|
|
21
22
|
const requirePermission_decorator_1 = require("../../../core/auth/decorators/requirePermission.decorator");
|
|
22
|
-
const permissions_guard_1 = require("../../../core/auth/guards/permissions.guard");
|
|
23
23
|
const permissionScope_util_1 = require("../../../core/auth/permissionScope.util");
|
|
24
24
|
const images_service_1 = require("../../../core/images/images.service");
|
|
25
25
|
const filterSchema_response_1 = require("../../../core/query/filterSchema.response");
|
|
@@ -51,21 +51,19 @@ let UsersController = class UsersController {
|
|
|
51
51
|
const previous = (await this.users.findById(user.id)).avatar;
|
|
52
52
|
const path = await this.images.fromFileNow(user, avatarImage_profile_1.AVATAR_PROFILE, file);
|
|
53
53
|
const updated = await this.users.setAvatar(user.id, path);
|
|
54
|
-
await this.discardAvatar(
|
|
54
|
+
await this.discardAvatar(previous);
|
|
55
55
|
return updated;
|
|
56
56
|
}
|
|
57
57
|
async deleteAvatar(user) {
|
|
58
58
|
const previous = (await this.users.findById(user.id)).avatar;
|
|
59
59
|
await this.users.removeAvatar(user.id);
|
|
60
|
-
await this.discardAvatar(
|
|
60
|
+
await this.discardAvatar(previous);
|
|
61
61
|
}
|
|
62
|
-
async discardAvatar(
|
|
62
|
+
async discardAvatar(path) {
|
|
63
63
|
if (!path) {
|
|
64
64
|
return;
|
|
65
65
|
}
|
|
66
|
-
await this.images
|
|
67
|
-
.remove(user, avatarImage_profile_1.AVATAR_PROFILE, path)
|
|
68
|
-
.catch(() => undefined);
|
|
66
|
+
await this.images.discard(path).catch(() => undefined);
|
|
69
67
|
}
|
|
70
68
|
list(query, actor) {
|
|
71
69
|
return this.users.list(query, actor);
|
|
@@ -104,6 +102,7 @@ let UsersController = class UsersController {
|
|
|
104
102
|
exports.UsersController = UsersController;
|
|
105
103
|
__decorate([
|
|
106
104
|
(0, common_1.Get)("me"),
|
|
105
|
+
(0, allowPendingPassword_decorator_1.AllowPendingPassword)(),
|
|
107
106
|
(0, swagger_1.ApiOkResponse)({ type: user_response_1.UserResponse }),
|
|
108
107
|
__param(0, (0, currentUser_decorator_1.CurrentUser)("id")),
|
|
109
108
|
__metadata("design:type", Function),
|
|
@@ -123,6 +122,7 @@ __decorate([
|
|
|
123
122
|
(0, auditable_decorator_1.Auditable)("Troca da própria senha"),
|
|
124
123
|
(0, common_1.Patch)("me/password"),
|
|
125
124
|
(0, common_1.HttpCode)(204),
|
|
125
|
+
(0, allowPendingPassword_decorator_1.AllowPendingPassword)(),
|
|
126
126
|
__param(0, (0, currentUser_decorator_1.CurrentUser)("id")),
|
|
127
127
|
__param(1, (0, common_1.Body)()),
|
|
128
128
|
__metadata("design:type", Function),
|
|
@@ -153,7 +153,6 @@ __decorate([
|
|
|
153
153
|
], UsersController.prototype, "deleteAvatar", null);
|
|
154
154
|
__decorate([
|
|
155
155
|
(0, common_1.Get)(),
|
|
156
|
-
(0, common_1.UseGuards)(permissions_guard_1.PermissionsGuard),
|
|
157
156
|
(0, requirePermission_decorator_1.RequireAnyPermission)(...(0, permissionScope_util_1.anyOrTeam)("users:read")),
|
|
158
157
|
(0, swagger_1.ApiOkResponse)({ type: user_response_1.PaginatedUsersResponse }),
|
|
159
158
|
__param(0, (0, common_1.Query)()),
|
|
@@ -164,7 +163,6 @@ __decorate([
|
|
|
164
163
|
], UsersController.prototype, "list", null);
|
|
165
164
|
__decorate([
|
|
166
165
|
(0, common_1.Get)("filter-schema"),
|
|
167
|
-
(0, common_1.UseGuards)(permissions_guard_1.PermissionsGuard),
|
|
168
166
|
(0, requirePermission_decorator_1.RequireAnyPermission)(...(0, permissionScope_util_1.anyOrTeam)("users:read")),
|
|
169
167
|
(0, swagger_1.ApiOkResponse)({ type: filterSchema_response_1.FilterFieldResponse, isArray: true }),
|
|
170
168
|
__param(0, (0, currentUser_decorator_1.CurrentUser)()),
|
|
@@ -174,7 +172,6 @@ __decorate([
|
|
|
174
172
|
], UsersController.prototype, "filterSchema", null);
|
|
175
173
|
__decorate([
|
|
176
174
|
(0, common_1.Get)(":id"),
|
|
177
|
-
(0, common_1.UseGuards)(permissions_guard_1.PermissionsGuard),
|
|
178
175
|
(0, requirePermission_decorator_1.RequireAnyPermission)(...(0, permissionScope_util_1.anyOrTeam)("users:read")),
|
|
179
176
|
(0, swagger_1.ApiOkResponse)({ type: user_response_1.UserResponse }),
|
|
180
177
|
__param(0, (0, common_1.Param)("id", common_1.ParseUUIDPipe)),
|
|
@@ -185,7 +182,6 @@ __decorate([
|
|
|
185
182
|
], UsersController.prototype, "findOne", null);
|
|
186
183
|
__decorate([
|
|
187
184
|
(0, common_1.Post)(),
|
|
188
|
-
(0, common_1.UseGuards)(permissions_guard_1.PermissionsGuard),
|
|
189
185
|
(0, requirePermission_decorator_1.RequireAnyPermission)(...(0, permissionScope_util_1.anyOrTeam)("users:create")),
|
|
190
186
|
(0, swagger_1.ApiOkResponse)({ type: user_response_1.UserResponse }),
|
|
191
187
|
__param(0, (0, common_1.Body)()),
|
|
@@ -196,7 +192,6 @@ __decorate([
|
|
|
196
192
|
], UsersController.prototype, "create", null);
|
|
197
193
|
__decorate([
|
|
198
194
|
(0, common_1.Patch)(":id"),
|
|
199
|
-
(0, common_1.UseGuards)(permissions_guard_1.PermissionsGuard),
|
|
200
195
|
(0, requirePermission_decorator_1.RequireAnyPermission)(...(0, permissionScope_util_1.anyOrTeam)("users:update")),
|
|
201
196
|
(0, swagger_1.ApiOkResponse)({ type: user_response_1.UserResponse }),
|
|
202
197
|
__param(0, (0, common_1.Param)("id", common_1.ParseUUIDPipe)),
|
|
@@ -208,7 +203,6 @@ __decorate([
|
|
|
208
203
|
], UsersController.prototype, "update", null);
|
|
209
204
|
__decorate([
|
|
210
205
|
(0, common_1.Patch)(":id/active/:state"),
|
|
211
|
-
(0, common_1.UseGuards)(permissions_guard_1.PermissionsGuard),
|
|
212
206
|
(0, requirePermission_decorator_1.RequireAnyPermission)(...(0, permissionScope_util_1.anyOrTeam)("users:deactivate")),
|
|
213
207
|
(0, swagger_1.ApiOkResponse)({ type: user_response_1.UserResponse }),
|
|
214
208
|
__param(0, (0, common_1.Param)("id", common_1.ParseUUIDPipe)),
|
|
@@ -222,7 +216,6 @@ __decorate([
|
|
|
222
216
|
(0, auditable_decorator_1.Auditable)("Redefinição de senha por administrador"),
|
|
223
217
|
(0, common_1.Post)(":id/reset-password"),
|
|
224
218
|
(0, common_1.HttpCode)(204),
|
|
225
|
-
(0, common_1.UseGuards)(permissions_guard_1.PermissionsGuard),
|
|
226
219
|
(0, requirePermission_decorator_1.RequireAnyPermission)(...(0, permissionScope_util_1.anyOrTeam)("users:reset-password")),
|
|
227
220
|
__param(0, (0, common_1.Param)("id", common_1.ParseUUIDPipe)),
|
|
228
221
|
__param(1, (0, currentUser_decorator_1.CurrentUser)()),
|
|
@@ -234,7 +227,6 @@ __decorate([
|
|
|
234
227
|
(0, auditable_decorator_1.Auditable)("Envio de link de primeiro acesso"),
|
|
235
228
|
(0, common_1.Post)(":id/first-access-link"),
|
|
236
229
|
(0, common_1.HttpCode)(204),
|
|
237
|
-
(0, common_1.UseGuards)(permissions_guard_1.PermissionsGuard),
|
|
238
230
|
(0, requirePermission_decorator_1.RequireAnyPermission)(...(0, permissionScope_util_1.anyOrTeam)("users:invite")),
|
|
239
231
|
__param(0, (0, common_1.Param)("id", common_1.ParseUUIDPipe)),
|
|
240
232
|
__param(1, (0, currentUser_decorator_1.CurrentUser)()),
|
|
@@ -246,7 +238,6 @@ __decorate([
|
|
|
246
238
|
(0, auditable_decorator_1.Auditable)("Reset de 2FA por administrador"),
|
|
247
239
|
(0, common_1.Post)(":id/reset-2fa"),
|
|
248
240
|
(0, common_1.HttpCode)(204),
|
|
249
|
-
(0, common_1.UseGuards)(permissions_guard_1.PermissionsGuard),
|
|
250
241
|
(0, requirePermission_decorator_1.RequireAnyPermission)(...(0, permissionScope_util_1.anyOrTeam)("users:reset-password")),
|
|
251
242
|
__param(0, (0, common_1.Param)("id", common_1.ParseUUIDPipe)),
|
|
252
243
|
__param(1, (0, currentUser_decorator_1.CurrentUser)()),
|
|
@@ -257,7 +248,6 @@ __decorate([
|
|
|
257
248
|
__decorate([
|
|
258
249
|
(0, common_1.Delete)(":id"),
|
|
259
250
|
(0, common_1.HttpCode)(204),
|
|
260
|
-
(0, common_1.UseGuards)(permissions_guard_1.PermissionsGuard),
|
|
261
251
|
(0, requirePermission_decorator_1.RequirePermission)("users:delete:any"),
|
|
262
252
|
__param(0, (0, common_1.Param)("id", common_1.ParseUUIDPipe)),
|
|
263
253
|
__param(1, (0, currentUser_decorator_1.CurrentUser)()),
|
package/dist/index.d.ts
CHANGED
|
@@ -12,12 +12,14 @@ export { EnvService } from "./core/config/env.service";
|
|
|
12
12
|
export { Actor } from "./core/auth/actor.interface";
|
|
13
13
|
export { AuthenticatedUser, RequestWithUser, } from "./core/auth/authenticatedUser.interface";
|
|
14
14
|
export { ACCESS_COOKIE, clearAuthCookies, REFRESH_COOKIE, setAuthCookies, } from "./core/auth/cookie.util";
|
|
15
|
+
export { AllowPendingPassword } from "./core/auth/decorators/allowPendingPassword.decorator";
|
|
15
16
|
export { CurrentUser } from "./core/auth/decorators/currentUser.decorator";
|
|
16
17
|
export { IS_PUBLIC_KEY, Public } from "./core/auth/decorators/public.decorator";
|
|
17
18
|
export { ANY_PERMISSIONS_KEY, PERMISSIONS_KEY, RequireAnyPermission, RequirePermission, } from "./core/auth/decorators/requirePermission.decorator";
|
|
18
19
|
export { AppThrottlerGuard } from "./core/auth/guards/appThrottler.guard";
|
|
19
20
|
export { CsrfGuard } from "./core/auth/guards/csrf.guard";
|
|
20
21
|
export { JwtAuthGuard } from "./core/auth/guards/jwtAuth.guard";
|
|
22
|
+
export { PasswordPolicyGuard } from "./core/auth/guards/passwordPolicy.guard";
|
|
21
23
|
export { PermissionsGuard } from "./core/auth/guards/permissions.guard";
|
|
22
24
|
export { OwnershipScope, resolveOwnershipScope, } from "./core/auth/ownershipScope.util";
|
|
23
25
|
export { assertAnyPermission, assertPermission, hasAnyPermission, hasPermission, INSUFFICIENT_PERMISSION, PermissionHolder, } from "./core/auth/permissionCheck.util";
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.
|
|
6
|
-
exports.normalizeIp = exports.sha256 = exports.randomToken = exports.numericCode = exports.backupCode = exports.encryptSecret = exports.decryptSecret = exports.MailerService = exports.createAppLogger = exports.WS_USER_RESOLVER = exports.WsAuthService = exports.wrapSocketEvent = exports.SOCKET_EVENT_VERSION = exports.userRoom = exports.SESSION_REFRESH_EVENT = exports.roleRoom = exports.NOTIFICATIONS_NAMESPACE = exports.BaseGateway = exports.UploadImageFromUrlCommand = exports.ImageStatusResponse = exports.ImageProfileResponse = exports.ImageAcceptedResponse = exports.ImagesWorkerModule = exports.ImageStorageService = exports.ImagesApiModule = exports.ImagesService = exports.ImagesProcessor = exports.ImagesModule = exports.ImagesController = exports.ImageProfileRegistry = exports.ImageUploadProfile = exports.ImageSourceKind = exports.ImageFormat = exports.ImageFit = exports.IMAGE_PROFILE = exports.EXTENSION_BY_FORMAT = exports.ImageProcessingService = exports.isBlockedAddress = exports.ImageFetchService = exports.ImageCleanupService = exports.RequestExportCommand = exports.PdfDocumentService = void 0;
|
|
3
|
+
exports.FilterFieldResponse = exports.FilterOperator = exports.FilterCombinator = exports.FilterFieldType = exports.FILTER_MAX_NODES = exports.FILTER_MAX_LENGTH = exports.FILTER_MAX_IN_ITEMS = exports.FILTER_MAX_DEPTH = exports.DEFAULT_OPERATORS = exports.applyOwnershipScope = exports.applyFilter = exports.SCOPE_TEAM = exports.SCOPE_OWN = exports.SCOPE_ANY = exports.anyOrTeam = exports.anyOrOwn = exports.INSUFFICIENT_PERMISSION = exports.hasPermission = exports.hasAnyPermission = exports.assertPermission = exports.assertAnyPermission = exports.resolveOwnershipScope = exports.PermissionsGuard = exports.PasswordPolicyGuard = exports.JwtAuthGuard = exports.CsrfGuard = exports.AppThrottlerGuard = exports.RequirePermission = exports.RequireAnyPermission = exports.PERMISSIONS_KEY = exports.ANY_PERMISSIONS_KEY = exports.Public = exports.IS_PUBLIC_KEY = exports.CurrentUser = exports.AllowPendingPassword = exports.setAuthCookies = exports.REFRESH_COOKIE = exports.clearAuthCookies = exports.ACCESS_COOKIE = exports.EnvService = exports.validateEnv = exports.envSchema = exports.ConfigModule = exports.RlCoreModule = exports.coreEntities = exports.coreMigrations = exports.createCoreDataSource = exports.CoreModule = exports.bootstrapWorker = exports.bootstrapCore = void 0;
|
|
4
|
+
exports.JobEventsService = exports.JOB_EVENTS_PUBLISHER = exports.JobProducer = exports.BullConnectionModule = exports.Auditable = exports.RequestOutcome = exports.ErrorType = exports.codedUnauthorized = exports.codedTooManyRequests = exports.codedBadRequest = exports.AppErrorCode = exports.AppEvent = exports.auditContext = exports.User = exports.PasswordHistory = exports.Scope = exports.Role = exports.Resource = exports.Permission = exports.Group = exports.Action = exports.NotificationsPublisher = exports.NotificationsModule = exports.NotificationScope = exports.NotificationRead = exports.Notification = exports.NotificationsService = exports.ScopeType = exports.NotificationType = exports.SCOPES = exports.ROLES = exports.RESOURCES = exports.PERMISSIONS = exports.ACTIONS = exports.AuthToken = exports.RequestLog = exports.AuditDataChange = exports.seedPermissions = exports.seedAdmin = exports.BaseEntity = exports.PaginationMetaResponse = exports.resolveOrder = exports.PaginationQuery = exports.Paginated = exports.parseFilter = exports.paginateWithFilter = exports.applySearch = exports.resolveCatalogOrder = exports.toFilterSchema = exports.FilterOptionResponse = void 0;
|
|
5
|
+
exports.ExportWorkerModule = exports.ExportStorageService = exports.ExportStatusResponse = exports.ExportKind = exports.ExportHandlerRegistry = exports.ExportReport = exports.EXPORT_HANDLER = exports.ExportExtension = exports.EXPORT_CONTENT_TYPES = exports.ExportEngineService = exports.ExportDocument = exports.EXPORT_DOCUMENT = exports.ExportColumnFormat = exports.ExportCleanupService = exports.ExportApiModule = exports.ExportAcceptedResponse = exports.ExportService = exports.ExportProcessor = exports.ExportModule = exports.ExportController = exports.EXPORT_PARAMS_MAX_LENGTH = exports.RedisJobEventsPublisher = exports.jobEventsChannel = exports.RedisJobEventsBridge = exports.buildRedisOptions = exports.QueueModule = exports.queuePrefix = exports.QUEUE_NAMES = exports.JOBS_QUEUE = exports.JOB_PROGRESS_EVENT = exports.JOB_FAILED_EVENT = exports.JOB_CONCURRENCY = exports.JOB_COMPLETED_EVENT = exports.JOB_BACKOFF_DELAY_MS = exports.JOB_ATTEMPTS = exports.isRedisConfigured = exports.isQueueName = exports.IMAGES_QUEUE = exports.IMAGE_LOCK_DURATION_MS = exports.IMAGE_CONCURRENCY = exports.FAILED_RETENTION_SECONDS = exports.EXPORTS_QUEUE = exports.EXPORT_LOCK_DURATION_MS = exports.EXPORT_CONCURRENCY = exports.COMPLETED_RETENTION_SECONDS = exports.toSafeError = exports.JobWorkerHost = exports.JobStatusResponse = exports.JobProgressResponse = exports.JobErrorResponse = void 0;
|
|
6
|
+
exports.normalizeIp = exports.sha256 = exports.randomToken = exports.numericCode = exports.backupCode = exports.encryptSecret = exports.decryptSecret = exports.MailerService = exports.createAppLogger = exports.WS_USER_RESOLVER = exports.WsAuthService = exports.wrapSocketEvent = exports.SOCKET_EVENT_VERSION = exports.userRoom = exports.SESSION_REFRESH_EVENT = exports.roleRoom = exports.NOTIFICATIONS_NAMESPACE = exports.BaseGateway = exports.UploadImageFromUrlCommand = exports.ImageStatusResponse = exports.ImageProfileResponse = exports.ImageAcceptedResponse = exports.ImagesWorkerModule = exports.ImageStorageService = exports.ImagesApiModule = exports.ImagesService = exports.ImagesProcessor = exports.ImagesModule = exports.ImagesController = exports.ImageProfileRegistry = exports.ImageUploadProfile = exports.ImageSourceKind = exports.ImageFormat = exports.ImageFit = exports.IMAGE_PROFILE = exports.EXTENSION_BY_FORMAT = exports.ImageProcessingService = exports.isBlockedAddress = exports.ImageFetchService = exports.ImageCleanupService = exports.RequestExportCommand = exports.PdfDocumentService = exports.PDF_TABLE_LAYOUT = exports.PDF_STYLE = void 0;
|
|
7
7
|
var bootstrapCore_util_1 = require("./core/bootstrap/bootstrapCore.util");
|
|
8
8
|
Object.defineProperty(exports, "bootstrapCore", { enumerable: true, get: function () { return bootstrapCore_util_1.bootstrapCore; } });
|
|
9
9
|
var bootstrapWorker_util_1 = require("./core/bootstrap/bootstrapWorker.util");
|
|
@@ -30,6 +30,8 @@ Object.defineProperty(exports, "ACCESS_COOKIE", { enumerable: true, get: functio
|
|
|
30
30
|
Object.defineProperty(exports, "clearAuthCookies", { enumerable: true, get: function () { return cookie_util_1.clearAuthCookies; } });
|
|
31
31
|
Object.defineProperty(exports, "REFRESH_COOKIE", { enumerable: true, get: function () { return cookie_util_1.REFRESH_COOKIE; } });
|
|
32
32
|
Object.defineProperty(exports, "setAuthCookies", { enumerable: true, get: function () { return cookie_util_1.setAuthCookies; } });
|
|
33
|
+
var allowPendingPassword_decorator_1 = require("./core/auth/decorators/allowPendingPassword.decorator");
|
|
34
|
+
Object.defineProperty(exports, "AllowPendingPassword", { enumerable: true, get: function () { return allowPendingPassword_decorator_1.AllowPendingPassword; } });
|
|
33
35
|
var currentUser_decorator_1 = require("./core/auth/decorators/currentUser.decorator");
|
|
34
36
|
Object.defineProperty(exports, "CurrentUser", { enumerable: true, get: function () { return currentUser_decorator_1.CurrentUser; } });
|
|
35
37
|
var public_decorator_1 = require("./core/auth/decorators/public.decorator");
|
|
@@ -46,6 +48,8 @@ var csrf_guard_1 = require("./core/auth/guards/csrf.guard");
|
|
|
46
48
|
Object.defineProperty(exports, "CsrfGuard", { enumerable: true, get: function () { return csrf_guard_1.CsrfGuard; } });
|
|
47
49
|
var jwtAuth_guard_1 = require("./core/auth/guards/jwtAuth.guard");
|
|
48
50
|
Object.defineProperty(exports, "JwtAuthGuard", { enumerable: true, get: function () { return jwtAuth_guard_1.JwtAuthGuard; } });
|
|
51
|
+
var passwordPolicy_guard_1 = require("./core/auth/guards/passwordPolicy.guard");
|
|
52
|
+
Object.defineProperty(exports, "PasswordPolicyGuard", { enumerable: true, get: function () { return passwordPolicy_guard_1.PasswordPolicyGuard; } });
|
|
49
53
|
var permissions_guard_1 = require("./core/auth/guards/permissions.guard");
|
|
50
54
|
Object.defineProperty(exports, "PermissionsGuard", { enumerable: true, get: function () { return permissions_guard_1.PermissionsGuard; } });
|
|
51
55
|
var ownershipScope_util_1 = require("./core/auth/ownershipScope.util");
|
package/package.json
CHANGED