@neohm/nestend 2.0.4 → 3.0.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/README.md +77 -28
- package/dist/admin/controllers/admin.user.controller.d.ts +1 -1
- package/dist/admin/controllers/admin.user.controller.js +4 -4
- package/dist/admin/controllers/admin.user.controller.js.map +1 -1
- package/dist/admin/dtos/add.admin.user.dto.d.ts +6 -2
- package/dist/admin/dtos/add.admin.user.dto.d.ts.map +1 -1
- package/dist/admin/dtos/add.admin.user.dto.js +33 -3
- package/dist/admin/dtos/add.admin.user.dto.js.map +1 -1
- package/dist/admin/dtos/base.user.dto.d.ts +0 -1
- package/dist/admin/dtos/base.user.dto.d.ts.map +1 -1
- package/dist/admin/dtos/base.user.dto.js +0 -11
- package/dist/admin/dtos/base.user.dto.js.map +1 -1
- package/dist/admin/es6.classes.d.ts +2 -1
- package/dist/admin/es6.classes.d.ts.map +1 -1
- package/dist/admin/es6.classes.js +24 -3
- package/dist/admin/es6.classes.js.map +1 -1
- package/dist/admin/libraries/admin.user.data.processor.d.ts +11 -4
- package/dist/admin/libraries/admin.user.data.processor.d.ts.map +1 -1
- package/dist/admin/libraries/admin.user.data.processor.js +55 -17
- package/dist/admin/libraries/admin.user.data.processor.js.map +1 -1
- package/dist/admin/libraries/bulk.user.data.processor.d.ts +1 -1
- package/dist/admin/libraries/bulk.user.data.processor.d.ts.map +1 -1
- package/dist/admin/libraries/bulk.user.data.processor.js +2 -13
- package/dist/admin/libraries/bulk.user.data.processor.js.map +1 -1
- package/dist/admin/libraries/client.user.data.processor.d.ts +1 -1
- package/dist/admin/libraries/client.user.data.processor.d.ts.map +1 -1
- package/dist/admin/libraries/client.user.data.processor.js +2 -6
- package/dist/admin/libraries/client.user.data.processor.js.map +1 -1
- package/dist/admin/libraries/scheduled.task.data.processor.d.ts +3 -3
- package/dist/admin/libraries/scheduled.task.data.processor.d.ts.map +1 -1
- package/dist/admin/libraries/scheduled.task.data.processor.js.map +1 -1
- package/dist/admin/libraries/tenant.data.processor.d.ts +2 -2
- package/dist/admin/libraries/tenant.data.processor.d.ts.map +1 -1
- package/dist/admin/libraries/tenant.data.processor.js.map +1 -1
- package/dist/admin/libraries/user.data.processor.d.ts +0 -11
- package/dist/admin/libraries/user.data.processor.d.ts.map +1 -1
- package/dist/admin/libraries/user.data.processor.js +0 -44
- package/dist/admin/libraries/user.data.processor.js.map +1 -1
- package/dist/admin/services/admin.access.service.d.ts +8 -8
- package/dist/admin/services/admin.access.service.d.ts.map +1 -1
- package/dist/admin/services/admin.access.service.js +8 -8
- package/dist/admin/services/admin.access.service.js.map +1 -1
- package/dist/auth/auth.module.d.ts.map +1 -1
- package/dist/auth/auth.module.js +17 -5
- package/dist/auth/auth.module.js.map +1 -1
- package/dist/auth/controllers/admin.auth.controller.d.ts +20 -0
- package/dist/auth/controllers/admin.auth.controller.d.ts.map +1 -0
- package/dist/auth/controllers/admin.auth.controller.js +95 -0
- package/dist/auth/controllers/admin.auth.controller.js.map +1 -0
- package/dist/auth/controllers/auth.controller.d.ts.map +1 -1
- package/dist/auth/controllers/auth.controller.js +7 -4
- package/dist/auth/controllers/auth.controller.js.map +1 -1
- package/dist/auth/dtos/admin.login.dto.d.ts +5 -0
- package/dist/auth/dtos/admin.login.dto.d.ts.map +1 -0
- package/dist/auth/dtos/admin.login.dto.js +30 -0
- package/dist/auth/dtos/admin.login.dto.js.map +1 -0
- package/dist/auth/entities/admin.user.entity.d.ts +11 -0
- package/dist/auth/entities/admin.user.entity.d.ts.map +1 -0
- package/dist/auth/entities/admin.user.entity.js +47 -0
- package/dist/auth/entities/admin.user.entity.js.map +1 -0
- package/dist/auth/entities/api.key.entity.d.ts +2 -2
- package/dist/auth/entities/api.key.entity.d.ts.map +1 -1
- package/dist/auth/entities/api.key.entity.js +2 -2
- package/dist/auth/entities/api.key.entity.js.map +1 -1
- package/dist/auth/entities/api.scope.entity.d.ts +13 -0
- package/dist/auth/entities/api.scope.entity.d.ts.map +1 -0
- package/dist/auth/entities/api.scope.entity.js +51 -0
- package/dist/auth/entities/api.scope.entity.js.map +1 -0
- package/dist/auth/entities/scope.entity.d.ts +7 -0
- package/dist/auth/entities/scope.entity.d.ts.map +1 -0
- package/dist/auth/entities/scope.entity.js +34 -0
- package/dist/auth/entities/scope.entity.js.map +1 -0
- package/dist/auth/entities/system.admin.role.entity.d.ts +11 -0
- package/dist/auth/entities/system.admin.role.entity.d.ts.map +1 -0
- package/dist/auth/entities/system.admin.role.entity.js +46 -0
- package/dist/auth/entities/system.admin.role.entity.js.map +1 -0
- package/dist/auth/entities/system.admin.user.role.entity.d.ts +10 -0
- package/dist/auth/entities/system.admin.user.role.entity.d.ts.map +1 -0
- package/dist/auth/entities/system.admin.user.role.entity.js +41 -0
- package/dist/auth/entities/system.admin.user.role.entity.js.map +1 -0
- package/dist/auth/entities/system.auth.session.entity.d.ts +9 -0
- package/dist/auth/entities/system.auth.session.entity.d.ts.map +1 -0
- package/dist/auth/entities/system.auth.session.entity.js +42 -0
- package/dist/auth/entities/system.auth.session.entity.js.map +1 -0
- package/dist/auth/entities/system.refresh.token.entity.d.ts +1 -0
- package/dist/auth/entities/system.refresh.token.entity.d.ts.map +1 -1
- package/dist/auth/entities/system.refresh.token.entity.js +4 -0
- package/dist/auth/entities/system.refresh.token.entity.js.map +1 -1
- package/dist/auth/entities/system.role.entity.d.ts +3 -4
- package/dist/auth/entities/system.role.entity.d.ts.map +1 -1
- package/dist/auth/entities/system.role.entity.js +5 -8
- package/dist/auth/entities/system.role.entity.js.map +1 -1
- package/dist/auth/es6.classes.d.ts +6 -4
- package/dist/auth/es6.classes.d.ts.map +1 -1
- package/dist/auth/es6.classes.js +32 -6
- package/dist/auth/es6.classes.js.map +1 -1
- package/dist/auth/helpers/admin.auth.d.ts +6 -0
- package/dist/auth/helpers/admin.auth.d.ts.map +1 -0
- package/dist/auth/helpers/admin.auth.js +29 -0
- package/dist/auth/helpers/admin.auth.js.map +1 -0
- package/dist/auth/helpers/api.key.context.d.ts +6 -0
- package/dist/auth/helpers/api.key.context.d.ts.map +1 -0
- package/dist/auth/helpers/api.key.context.js +15 -0
- package/dist/auth/helpers/api.key.context.js.map +1 -0
- package/dist/auth/helpers/auth.d.ts +6 -0
- package/dist/auth/helpers/auth.d.ts.map +1 -0
- package/dist/auth/helpers/auth.js +27 -0
- package/dist/auth/helpers/auth.js.map +1 -0
- package/dist/auth/middlewares/admin.jwt.middleware.d.ts +10 -0
- package/dist/auth/middlewares/admin.jwt.middleware.d.ts.map +1 -0
- package/dist/auth/middlewares/admin.jwt.middleware.js +59 -0
- package/dist/auth/middlewares/admin.jwt.middleware.js.map +1 -0
- package/dist/auth/middlewares/api.key.middleware.d.ts +10 -0
- package/dist/auth/middlewares/api.key.middleware.d.ts.map +1 -0
- package/dist/auth/middlewares/api.key.middleware.js +47 -0
- package/dist/auth/middlewares/api.key.middleware.js.map +1 -0
- package/dist/auth/middlewares/jwt.middleware.d.ts +10 -0
- package/dist/auth/middlewares/jwt.middleware.d.ts.map +1 -0
- package/dist/auth/middlewares/jwt.middleware.js +59 -0
- package/dist/auth/middlewares/jwt.middleware.js.map +1 -0
- package/dist/auth/services/admin.auth.service.d.ts +19 -0
- package/dist/auth/services/admin.auth.service.d.ts.map +1 -0
- package/dist/auth/services/admin.auth.service.js +160 -0
- package/dist/auth/services/admin.auth.service.js.map +1 -0
- package/dist/auth/services/auth.service.d.ts +4 -5
- package/dist/auth/services/auth.service.d.ts.map +1 -1
- package/dist/auth/services/auth.service.js +41 -35
- package/dist/auth/services/auth.service.js.map +1 -1
- package/dist/auth/types/auth.types.d.ts +7 -4
- package/dist/auth/types/auth.types.d.ts.map +1 -1
- package/dist/common/consumers/job.consumer.d.ts +1 -0
- package/dist/common/consumers/job.consumer.d.ts.map +1 -1
- package/dist/common/consumers/job.consumer.js +7 -2
- package/dist/common/consumers/job.consumer.js.map +1 -1
- package/dist/common/controllers/common.controller.js +1 -1
- package/dist/common/controllers/common.controller.js.map +1 -1
- package/dist/common/entities/common.admin.entity.d.ts +7 -0
- package/dist/common/entities/common.admin.entity.d.ts.map +1 -0
- package/dist/common/entities/common.admin.entity.js +28 -0
- package/dist/common/entities/common.admin.entity.js.map +1 -0
- package/dist/common/entities/root.entity.d.ts.map +1 -1
- package/dist/common/entities/root.entity.js +11 -2
- package/dist/common/entities/root.entity.js.map +1 -1
- package/dist/constants/entity.constants.d.ts +6 -0
- package/dist/constants/entity.constants.d.ts.map +1 -1
- package/dist/constants/entity.constants.js +6 -0
- package/dist/constants/entity.constants.js.map +1 -1
- package/dist/constants/entity.maps.d.ts +12 -0
- package/dist/constants/entity.maps.d.ts.map +1 -1
- package/dist/constants/entity.maps.js +12 -0
- package/dist/constants/entity.maps.js.map +1 -1
- package/dist/global/filters/global.exception.filter.d.ts.map +1 -1
- package/dist/global/filters/global.exception.filter.js +6 -2
- package/dist/global/filters/global.exception.filter.js.map +1 -1
- package/dist/global/utilities/migration.utility.d.ts +4 -0
- package/dist/global/utilities/migration.utility.d.ts.map +1 -1
- package/dist/global/utilities/migration.utility.js +70 -8
- package/dist/global/utilities/migration.utility.js.map +1 -1
- package/dist/index.d.ts +26 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +55 -8
- package/dist/index.js.map +1 -1
- package/dist/migrations/1749600000003.CreateSysRolesTable.d.ts.map +1 -1
- package/dist/migrations/1749600000003.CreateSysRolesTable.js +3 -4
- package/dist/migrations/1749600000003.CreateSysRolesTable.js.map +1 -1
- package/dist/migrations/1749600000021.CreateSysAdminUsersTable.d.ts +6 -0
- package/dist/migrations/1749600000021.CreateSysAdminUsersTable.d.ts.map +1 -0
- package/dist/migrations/1749600000021.CreateSysAdminUsersTable.js +23 -0
- package/dist/migrations/1749600000021.CreateSysAdminUsersTable.js.map +1 -0
- package/dist/migrations/1749600000022.CreateSysAdminRolesTable.d.ts +6 -0
- package/dist/migrations/1749600000022.CreateSysAdminRolesTable.d.ts.map +1 -0
- package/dist/migrations/1749600000022.CreateSysAdminRolesTable.js +21 -0
- package/dist/migrations/1749600000022.CreateSysAdminRolesTable.js.map +1 -0
- package/dist/migrations/1749600000023.CreateSysAdminUserRolesJoinTable.d.ts +6 -0
- package/dist/migrations/1749600000023.CreateSysAdminUserRolesJoinTable.d.ts.map +1 -0
- package/dist/migrations/1749600000023.CreateSysAdminUserRolesJoinTable.js +34 -0
- package/dist/migrations/1749600000023.CreateSysAdminUserRolesJoinTable.js.map +1 -0
- package/dist/migrations/1749600000024.CreateSysAuthSessionsTable.d.ts +6 -0
- package/dist/migrations/1749600000024.CreateSysAuthSessionsTable.d.ts.map +1 -0
- package/dist/migrations/1749600000024.CreateSysAuthSessionsTable.js +22 -0
- package/dist/migrations/1749600000024.CreateSysAuthSessionsTable.js.map +1 -0
- package/dist/migrations/1749600000025.CreateSysScopesTable.d.ts +6 -0
- package/dist/migrations/1749600000025.CreateSysScopesTable.d.ts.map +1 -0
- package/dist/migrations/1749600000025.CreateSysScopesTable.js +25 -0
- package/dist/migrations/1749600000025.CreateSysScopesTable.js.map +1 -0
- package/dist/migrations/1749600000026.CreateSysApiScopesTable.d.ts +6 -0
- package/dist/migrations/1749600000026.CreateSysApiScopesTable.d.ts.map +1 -0
- package/dist/migrations/1749600000026.CreateSysApiScopesTable.js +39 -0
- package/dist/migrations/1749600000026.CreateSysApiScopesTable.js.map +1 -0
- package/dist/migrations/1749600000027.RetargetSysApiKeysCreatedByToAdminUsers.d.ts +8 -0
- package/dist/migrations/1749600000027.RetargetSysApiKeysCreatedByToAdminUsers.d.ts.map +1 -0
- package/dist/migrations/1749600000027.RetargetSysApiKeysCreatedByToAdminUsers.js +31 -0
- package/dist/migrations/1749600000027.RetargetSysApiKeysCreatedByToAdminUsers.js.map +1 -0
- package/dist/migrations/1749600000028.RetargetSysTenantsCreatedByToAdminUsers.d.ts +8 -0
- package/dist/migrations/1749600000028.RetargetSysTenantsCreatedByToAdminUsers.d.ts.map +1 -0
- package/dist/migrations/1749600000028.RetargetSysTenantsCreatedByToAdminUsers.js +31 -0
- package/dist/migrations/1749600000028.RetargetSysTenantsCreatedByToAdminUsers.js.map +1 -0
- package/dist/migrations/1749600000029.AddIsAdminToSysRefreshTokensTable.d.ts +7 -0
- package/dist/migrations/1749600000029.AddIsAdminToSysRefreshTokensTable.d.ts.map +1 -0
- package/dist/migrations/1749600000029.AddIsAdminToSysRefreshTokensTable.js +31 -0
- package/dist/migrations/1749600000029.AddIsAdminToSysRefreshTokensTable.js.map +1 -0
- package/dist/tenant/entities/tenant.entity.d.ts +2 -3
- package/dist/tenant/entities/tenant.entity.d.ts.map +1 -1
- package/dist/tenant/entities/tenant.entity.js +2 -6
- package/dist/tenant/entities/tenant.entity.js.map +1 -1
- package/package.json +1 -1
- package/dist/auth/middlewares/auth.context.middleware.d.ts +0 -10
- package/dist/auth/middlewares/auth.context.middleware.d.ts.map +0 -1
- package/dist/auth/middlewares/auth.context.middleware.js +0 -37
- package/dist/auth/middlewares/auth.context.middleware.js.map +0 -1
- package/dist/auth/services/auth.context.service.d.ts +0 -9
- package/dist/auth/services/auth.context.service.d.ts.map +0 -1
- package/dist/auth/services/auth.context.service.js +0 -33
- package/dist/auth/services/auth.context.service.js.map +0 -1
|
@@ -0,0 +1,30 @@
|
|
|
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.AdminLoginDto = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
15
|
+
class AdminLoginDto {
|
|
16
|
+
}
|
|
17
|
+
exports.AdminLoginDto = AdminLoginDto;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, swagger_1.ApiProperty)({ example: 'jane@company.com or jane.doe' }),
|
|
20
|
+
(0, class_validator_1.IsString)(),
|
|
21
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], AdminLoginDto.prototype, "email_or_username", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, swagger_1.ApiProperty)({ example: 'S3curePass!' }),
|
|
26
|
+
(0, class_validator_1.IsString)(),
|
|
27
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], AdminLoginDto.prototype, "password", void 0);
|
|
30
|
+
//# sourceMappingURL=admin.login.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin.login.dto.js","sourceRoot":"","sources":["../../../src/auth/dtos/admin.login.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuD;AACvD,6CAA8C;AAE9C,MAAa,aAAa;CAUzB;AAVD,sCAUC;AANC;IAHC,IAAA,qBAAW,EAAC,EAAE,OAAO,EAAE,8BAA8B,EAAE,CAAC;IACxD,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;wDACa;AAK1B;IAHC,IAAA,qBAAW,EAAC,EAAE,OAAO,EAAE,aAAa,EAAE,CAAC;IACvC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;+CACI"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { RootEntity } from '../../common/entities/root.entity';
|
|
2
|
+
import type { SystemAdminUserRoleEntity } from './system.admin.user.role.entity';
|
|
3
|
+
export declare class AdminUserEntity extends RootEntity {
|
|
4
|
+
name: string;
|
|
5
|
+
email: string;
|
|
6
|
+
username: string;
|
|
7
|
+
password: string;
|
|
8
|
+
attributes: Record<string, any>;
|
|
9
|
+
adminUserRoles: SystemAdminUserRoleEntity[];
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=admin.user.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin.user.entity.d.ts","sourceRoot":"","sources":["../../../src/auth/entities/admin.user.entity.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAC;AAC/D,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAC;AAMjF,qBACa,eAAgB,SAAQ,UAAU;IAE7C,IAAI,EAAE,MAAM,CAAC;IAIb,KAAK,EAAE,MAAM,CAAC;IAId,QAAQ,EAAE,MAAM,CAAC;IAGjB,QAAQ,EAAE,MAAM,CAAC;IAGjB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAMhC,cAAc,EAAE,yBAAyB,EAAE,CAAC;CAC7C"}
|
|
@@ -0,0 +1,47 @@
|
|
|
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.AdminUserEntity = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const root_entity_1 = require("../../common/entities/root.entity");
|
|
15
|
+
let AdminUserEntity = class AdminUserEntity extends root_entity_1.RootEntity {
|
|
16
|
+
};
|
|
17
|
+
exports.AdminUserEntity = AdminUserEntity;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, typeorm_1.Column)({ type: 'text' }),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], AdminUserEntity.prototype, "name", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, typeorm_1.Index)({ unique: true }),
|
|
24
|
+
(0, typeorm_1.Column)({ type: 'varchar' }),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], AdminUserEntity.prototype, "email", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, typeorm_1.Index)({ unique: true }),
|
|
29
|
+
(0, typeorm_1.Column)({ type: 'varchar' }),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], AdminUserEntity.prototype, "username", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, typeorm_1.Column)({ type: 'varchar', select: false }),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], AdminUserEntity.prototype, "password", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, typeorm_1.Column)({ type: 'jsonb' }),
|
|
38
|
+
__metadata("design:type", Object)
|
|
39
|
+
], AdminUserEntity.prototype, "attributes", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, typeorm_1.OneToMany)('SystemAdminUserRoleEntity', (adminUserRoles) => adminUserRoles.adminUser),
|
|
42
|
+
__metadata("design:type", Array)
|
|
43
|
+
], AdminUserEntity.prototype, "adminUserRoles", void 0);
|
|
44
|
+
exports.AdminUserEntity = AdminUserEntity = __decorate([
|
|
45
|
+
(0, typeorm_1.Entity)({ name: 'sys_admin_users' })
|
|
46
|
+
], AdminUserEntity);
|
|
47
|
+
//# sourceMappingURL=admin.user.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin.user.entity.js","sourceRoot":"","sources":["../../../src/auth/entities/admin.user.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA2D;AAC3D,mEAA+D;AAQxD,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,wBAAU;CAuB9C,CAAA;AAvBY,0CAAe;AAE1B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;6CACZ;AAIb;IAFC,IAAA,eAAK,EAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IACvB,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;8CACd;AAId;IAFC,IAAA,eAAK,EAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IACvB,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;iDACX;AAGjB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;;iDAC1B;AAGjB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;;mDACM;AAMhC;IAJC,IAAA,mBAAS,EACR,2BAA2B,EAC3B,CAAC,cAAyC,EAAE,EAAE,CAAC,cAAc,CAAC,SAAS,CACxE;;uDAC2C;0BAtBjC,eAAe;IAD3B,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,CAAC;GACvB,eAAe,CAuB3B"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare class ApiKeyEntity extends
|
|
1
|
+
import { CommonAdminEntity } from '../../common/entities/common.admin.entity';
|
|
2
|
+
export declare class ApiKeyEntity extends CommonAdminEntity {
|
|
3
3
|
is_active: boolean;
|
|
4
4
|
name: string;
|
|
5
5
|
key_prefix: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.key.entity.d.ts","sourceRoot":"","sources":["../../../src/auth/entities/api.key.entity.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"api.key.entity.d.ts","sourceRoot":"","sources":["../../../src/auth/entities/api.key.entity.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAE9E,qBACa,YAAa,SAAQ,iBAAiB;IAEjD,SAAS,EAAE,OAAO,CAAC;IAGnB,IAAI,EAAE,MAAM,CAAC;IAIb,UAAU,EAAE,MAAM,CAAC;IAInB,QAAQ,EAAE,MAAM,CAAC;IAIjB,MAAM,EAAE,MAAM,EAAE,CAAC;IAGjB,UAAU,EAAE,IAAI,CAAC;IAGjB,UAAU,EAAE,IAAI,CAAC;IAGjB,YAAY,EAAE,IAAI,CAAC;CACpB"}
|
|
@@ -11,8 +11,8 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.ApiKeyEntity = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
|
-
const
|
|
15
|
-
let ApiKeyEntity = class ApiKeyEntity extends
|
|
14
|
+
const common_admin_entity_1 = require("../../common/entities/common.admin.entity");
|
|
15
|
+
let ApiKeyEntity = class ApiKeyEntity extends common_admin_entity_1.CommonAdminEntity {
|
|
16
16
|
};
|
|
17
17
|
exports.ApiKeyEntity = ApiKeyEntity;
|
|
18
18
|
__decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.key.entity.js","sourceRoot":"","sources":["../../../src/auth/entities/api.key.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAyC;AACzC,
|
|
1
|
+
{"version":3,"file":"api.key.entity.js","sourceRoot":"","sources":["../../../src/auth/entities/api.key.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAyC;AACzC,mFAA8E;AAGvE,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,uCAAiB;CA2BlD,CAAA;AA3BY,oCAAY;AAEvB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;+CACxB;AAGnB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;0CACf;AAIb;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;gDACT;AAInB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;8CACzB;AAIjB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;;4CACT;AAGjB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;8BACpB,IAAI;gDAAC;AAGjB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;8BACpB,IAAI;gDAAC;AAGjB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;8BAClB,IAAI;kDAAC;uBA1BR,YAAY;IADxB,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,cAAc,EAAE,CAAC;GACpB,YAAY,CA2BxB"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { CommonAdminEntity } from '../../common/entities/common.admin.entity';
|
|
2
|
+
import { AdminUserEntity } from './admin.user.entity';
|
|
3
|
+
import { ApiKeyEntity } from './api.key.entity';
|
|
4
|
+
import { ScopeEntity } from './scope.entity';
|
|
5
|
+
export declare class ApiScopeEntity extends CommonAdminEntity {
|
|
6
|
+
api_key_id: string;
|
|
7
|
+
scope_id: string;
|
|
8
|
+
revoked_by: string;
|
|
9
|
+
apiKey: ApiKeyEntity;
|
|
10
|
+
scope: ScopeEntity;
|
|
11
|
+
revoker: AdminUserEntity;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=api.scope.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api.scope.entity.d.ts","sourceRoot":"","sources":["../../../src/auth/entities/api.scope.entity.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAC9E,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAG7C,qBACa,cAAe,SAAQ,iBAAiB;IAEnD,UAAU,EAAE,MAAM,CAAC;IAGnB,QAAQ,EAAE,MAAM,CAAC;IAGjB,UAAU,EAAE,MAAM,CAAC;IAInB,MAAM,EAAE,YAAY,CAAC;IAIrB,KAAK,EAAE,WAAW,CAAC;IAInB,OAAO,EAAE,eAAe,CAAC;CAC1B"}
|
|
@@ -0,0 +1,51 @@
|
|
|
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.ApiScopeEntity = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const common_admin_entity_1 = require("../../common/entities/common.admin.entity");
|
|
15
|
+
const admin_user_entity_1 = require("./admin.user.entity");
|
|
16
|
+
const api_key_entity_1 = require("./api.key.entity");
|
|
17
|
+
const scope_entity_1 = require("./scope.entity");
|
|
18
|
+
let ApiScopeEntity = class ApiScopeEntity extends common_admin_entity_1.CommonAdminEntity {
|
|
19
|
+
};
|
|
20
|
+
exports.ApiScopeEntity = ApiScopeEntity;
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, typeorm_1.Column)({ type: 'uuid' }),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], ApiScopeEntity.prototype, "api_key_id", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.Column)({ type: 'uuid' }),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], ApiScopeEntity.prototype, "scope_id", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.Column)({ type: 'uuid', nullable: true }),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], ApiScopeEntity.prototype, "revoked_by", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.ManyToOne)(() => api_key_entity_1.ApiKeyEntity),
|
|
35
|
+
(0, typeorm_1.JoinColumn)({ name: 'api_key_id' }),
|
|
36
|
+
__metadata("design:type", api_key_entity_1.ApiKeyEntity)
|
|
37
|
+
], ApiScopeEntity.prototype, "apiKey", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.ManyToOne)(() => scope_entity_1.ScopeEntity),
|
|
40
|
+
(0, typeorm_1.JoinColumn)({ name: 'scope_id' }),
|
|
41
|
+
__metadata("design:type", scope_entity_1.ScopeEntity)
|
|
42
|
+
], ApiScopeEntity.prototype, "scope", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, typeorm_1.ManyToOne)(() => admin_user_entity_1.AdminUserEntity),
|
|
45
|
+
(0, typeorm_1.JoinColumn)({ name: 'revoked_by' }),
|
|
46
|
+
__metadata("design:type", admin_user_entity_1.AdminUserEntity)
|
|
47
|
+
], ApiScopeEntity.prototype, "revoker", void 0);
|
|
48
|
+
exports.ApiScopeEntity = ApiScopeEntity = __decorate([
|
|
49
|
+
(0, typeorm_1.Entity)({ name: 'sys_api_scopes' })
|
|
50
|
+
], ApiScopeEntity);
|
|
51
|
+
//# sourceMappingURL=api.scope.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api.scope.entity.js","sourceRoot":"","sources":["../../../src/auth/entities/api.scope.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAgE;AAChE,mFAA8E;AAC9E,2DAAsD;AACtD,qDAAgD;AAChD,iDAA6C;AAItC,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,uCAAiB;CAqBpD,CAAA;AArBY,wCAAc;AAEzB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;kDACN;AAGnB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;gDACR;AAGjB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kDACtB;AAInB;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,6BAAY,CAAC;IAC7B,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;8BAC3B,6BAAY;8CAAC;AAIrB;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,0BAAW,CAAC;IAC5B,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC;8BAC1B,0BAAW;6CAAC;AAInB;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,mCAAe,CAAC;IAChC,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;8BAC1B,mCAAe;+CAAC;yBApBd,cAAc;IAD1B,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,gBAAgB,EAAE,CAAC;GACtB,cAAc,CAqB1B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scope.entity.d.ts","sourceRoot":"","sources":["../../../src/auth/entities/scope.entity.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAG9E,qBACa,WAAY,SAAQ,iBAAiB;IAGhD,UAAU,EAAE,MAAM,CAAC;IAGnB,IAAI,EAAE,MAAM,CAAC;IAGb,WAAW,EAAE,MAAM,CAAC;CACrB"}
|
|
@@ -0,0 +1,34 @@
|
|
|
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.ScopeEntity = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const common_admin_entity_1 = require("../../common/entities/common.admin.entity");
|
|
15
|
+
let ScopeEntity = class ScopeEntity extends common_admin_entity_1.CommonAdminEntity {
|
|
16
|
+
};
|
|
17
|
+
exports.ScopeEntity = ScopeEntity;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, typeorm_1.Index)({ unique: true }),
|
|
20
|
+
(0, typeorm_1.Column)({ type: 'varchar' }),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], ScopeEntity.prototype, "identifier", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, typeorm_1.Column)({ type: 'varchar' }),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], ScopeEntity.prototype, "name", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, typeorm_1.Column)({ type: 'text' }),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], ScopeEntity.prototype, "description", void 0);
|
|
31
|
+
exports.ScopeEntity = ScopeEntity = __decorate([
|
|
32
|
+
(0, typeorm_1.Entity)({ name: 'sys_scopes' })
|
|
33
|
+
], ScopeEntity);
|
|
34
|
+
//# sourceMappingURL=scope.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scope.entity.js","sourceRoot":"","sources":["../../../src/auth/entities/scope.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAgD;AAChD,mFAA8E;AAIvE,IAAM,WAAW,GAAjB,MAAM,WAAY,SAAQ,uCAAiB;CAUjD,CAAA;AAVY,kCAAW;AAGtB;IAFC,IAAA,eAAK,EAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IACvB,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;+CACT;AAGnB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;yCACf;AAGb;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;gDACL;sBATT,WAAW;IADvB,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;GAClB,WAAW,CAUvB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { RootEntity } from '../../common/entities/root.entity';
|
|
2
|
+
import { SystemAdminUserRoleEntity } from './system.admin.user.role.entity';
|
|
3
|
+
export declare class SystemAdminRoleEntity extends RootEntity {
|
|
4
|
+
is_active: boolean;
|
|
5
|
+
identifier: string;
|
|
6
|
+
name: string;
|
|
7
|
+
description: string;
|
|
8
|
+
attributes: Record<string, any>;
|
|
9
|
+
adminUserRoles: SystemAdminUserRoleEntity[];
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=system.admin.role.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"system.admin.role.entity.d.ts","sourceRoot":"","sources":["../../../src/auth/entities/system.admin.role.entity.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAC;AAC/D,OAAO,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAC;AAG5E,qBACa,qBAAsB,SAAQ,UAAU;IAEnD,SAAS,EAAE,OAAO,CAAC;IAGnB,UAAU,EAAE,MAAM,CAAC;IAGnB,IAAI,EAAE,MAAM,CAAC;IAGb,WAAW,EAAE,MAAM,CAAC;IAGpB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAMhC,cAAc,EAAE,yBAAyB,EAAE,CAAC;CAC7C"}
|
|
@@ -0,0 +1,46 @@
|
|
|
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.SystemAdminRoleEntity = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const root_entity_1 = require("../../common/entities/root.entity");
|
|
15
|
+
const system_admin_user_role_entity_1 = require("./system.admin.user.role.entity");
|
|
16
|
+
let SystemAdminRoleEntity = class SystemAdminRoleEntity extends root_entity_1.RootEntity {
|
|
17
|
+
};
|
|
18
|
+
exports.SystemAdminRoleEntity = SystemAdminRoleEntity;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: true }),
|
|
21
|
+
__metadata("design:type", Boolean)
|
|
22
|
+
], SystemAdminRoleEntity.prototype, "is_active", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, typeorm_1.Column)({ type: 'varchar' }),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], SystemAdminRoleEntity.prototype, "identifier", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, typeorm_1.Column)({ type: 'varchar' }),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], SystemAdminRoleEntity.prototype, "name", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, typeorm_1.Column)({ type: 'text' }),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], SystemAdminRoleEntity.prototype, "description", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, typeorm_1.Column)({ type: 'jsonb' }),
|
|
37
|
+
__metadata("design:type", Object)
|
|
38
|
+
], SystemAdminRoleEntity.prototype, "attributes", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, typeorm_1.OneToMany)(() => system_admin_user_role_entity_1.SystemAdminUserRoleEntity, (adminUserRole) => adminUserRole.role),
|
|
41
|
+
__metadata("design:type", Array)
|
|
42
|
+
], SystemAdminRoleEntity.prototype, "adminUserRoles", void 0);
|
|
43
|
+
exports.SystemAdminRoleEntity = SystemAdminRoleEntity = __decorate([
|
|
44
|
+
(0, typeorm_1.Entity)({ name: 'sys_admin_roles' })
|
|
45
|
+
], SystemAdminRoleEntity);
|
|
46
|
+
//# sourceMappingURL=system.admin.role.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"system.admin.role.entity.js","sourceRoot":"","sources":["../../../src/auth/entities/system.admin.role.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAoD;AACpD,mEAA+D;AAC/D,mFAA4E;AAIrE,IAAM,qBAAqB,GAA3B,MAAM,qBAAsB,SAAQ,wBAAU;CAqBpD,CAAA;AArBY,sDAAqB;AAEhC;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;wDACxB;AAGnB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;yDACT;AAGnB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;mDACf;AAGb;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;0DACL;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;;yDACM;AAMhC;IAJC,IAAA,mBAAS,EACR,GAAG,EAAE,CAAC,yDAAyB,EAC/B,CAAC,aAAa,EAAE,EAAE,CAAC,aAAa,CAAC,IAAI,CACtC;;6DAC2C;gCApBjC,qBAAqB;IADjC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,CAAC;GACvB,qBAAqB,CAqBjC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { CommonAdminEntity } from '../../common/entities/common.admin.entity';
|
|
2
|
+
import { AdminUserEntity } from './admin.user.entity';
|
|
3
|
+
import { SystemAdminRoleEntity } from './system.admin.role.entity';
|
|
4
|
+
export declare class SystemAdminUserRoleEntity extends CommonAdminEntity {
|
|
5
|
+
admin_user_id: string;
|
|
6
|
+
role_id: string;
|
|
7
|
+
adminUser: AdminUserEntity;
|
|
8
|
+
role: SystemAdminRoleEntity;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=system.admin.user.role.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"system.admin.user.role.entity.d.ts","sourceRoot":"","sources":["../../../src/auth/entities/system.admin.user.role.entity.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAC9E,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAGnE,qBACa,yBAA0B,SAAQ,iBAAiB;IAE9D,aAAa,EAAE,MAAM,CAAC;IAGtB,OAAO,EAAE,MAAM,CAAC;IAIhB,SAAS,EAAE,eAAe,CAAC;IAI3B,IAAI,EAAE,qBAAqB,CAAC;CAC7B"}
|
|
@@ -0,0 +1,41 @@
|
|
|
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.SystemAdminUserRoleEntity = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const common_admin_entity_1 = require("../../common/entities/common.admin.entity");
|
|
15
|
+
const admin_user_entity_1 = require("./admin.user.entity");
|
|
16
|
+
const system_admin_role_entity_1 = require("./system.admin.role.entity");
|
|
17
|
+
let SystemAdminUserRoleEntity = class SystemAdminUserRoleEntity extends common_admin_entity_1.CommonAdminEntity {
|
|
18
|
+
};
|
|
19
|
+
exports.SystemAdminUserRoleEntity = SystemAdminUserRoleEntity;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, typeorm_1.Column)({ type: 'uuid' }),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], SystemAdminUserRoleEntity.prototype, "admin_user_id", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, typeorm_1.Column)({ type: 'uuid' }),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], SystemAdminUserRoleEntity.prototype, "role_id", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, typeorm_1.ManyToOne)(() => admin_user_entity_1.AdminUserEntity, (adminUser) => adminUser.adminUserRoles),
|
|
30
|
+
(0, typeorm_1.JoinColumn)({ name: 'admin_user_id' }),
|
|
31
|
+
__metadata("design:type", admin_user_entity_1.AdminUserEntity)
|
|
32
|
+
], SystemAdminUserRoleEntity.prototype, "adminUser", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.ManyToOne)(() => system_admin_role_entity_1.SystemAdminRoleEntity, (role) => role.adminUserRoles),
|
|
35
|
+
(0, typeorm_1.JoinColumn)({ name: 'role_id' }),
|
|
36
|
+
__metadata("design:type", system_admin_role_entity_1.SystemAdminRoleEntity)
|
|
37
|
+
], SystemAdminUserRoleEntity.prototype, "role", void 0);
|
|
38
|
+
exports.SystemAdminUserRoleEntity = SystemAdminUserRoleEntity = __decorate([
|
|
39
|
+
(0, typeorm_1.Entity)({ name: 'sys_auser_roles' })
|
|
40
|
+
], SystemAdminUserRoleEntity);
|
|
41
|
+
//# sourceMappingURL=system.admin.user.role.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"system.admin.user.role.entity.js","sourceRoot":"","sources":["../../../src/auth/entities/system.admin.user.role.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAgE;AAChE,mFAA8E;AAC9E,2DAAsD;AACtD,yEAAmE;AAI5D,IAAM,yBAAyB,GAA/B,MAAM,yBAA0B,SAAQ,uCAAiB;CAc/D,CAAA;AAdY,8DAAyB;AAEpC;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;gEACH;AAGtB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;0DACT;AAIhB;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,mCAAe,EAAE,CAAC,SAAS,EAAE,EAAE,CAAC,SAAS,CAAC,cAAc,CAAC;IACzE,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,eAAe,EAAE,CAAC;8BAC3B,mCAAe;4DAAC;AAI3B;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,gDAAqB,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,cAAc,CAAC;IACrE,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;8BAC1B,gDAAqB;uDAAC;oCAbjB,yBAAyB;IADrC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,CAAC;GACvB,yBAAyB,CAcrC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { RootEntity } from '../../common/entities/root.entity';
|
|
2
|
+
export declare class SystemAuthSessionEntity extends RootEntity {
|
|
3
|
+
user_id: string;
|
|
4
|
+
is_admin: boolean;
|
|
5
|
+
session_identifier: string;
|
|
6
|
+
expires_at: Date;
|
|
7
|
+
invalidated_at: Date;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=system.auth.session.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"system.auth.session.entity.d.ts","sourceRoot":"","sources":["../../../src/auth/entities/system.auth.session.entity.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAC;AAS/D,qBACa,uBAAwB,SAAQ,UAAU;IAErD,OAAO,EAAE,MAAM,CAAC;IAGhB,QAAQ,EAAE,OAAO,CAAC;IAIlB,kBAAkB,EAAE,MAAM,CAAC;IAG3B,UAAU,EAAE,IAAI,CAAC;IAGjB,cAAc,EAAE,IAAI,CAAC;CACtB"}
|
|
@@ -0,0 +1,42 @@
|
|
|
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.SystemAuthSessionEntity = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const root_entity_1 = require("../../common/entities/root.entity");
|
|
15
|
+
let SystemAuthSessionEntity = class SystemAuthSessionEntity extends root_entity_1.RootEntity {
|
|
16
|
+
};
|
|
17
|
+
exports.SystemAuthSessionEntity = SystemAuthSessionEntity;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, typeorm_1.Column)({ type: 'uuid' }),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], SystemAuthSessionEntity.prototype, "user_id", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: false }),
|
|
24
|
+
__metadata("design:type", Boolean)
|
|
25
|
+
], SystemAuthSessionEntity.prototype, "is_admin", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.Index)({ unique: true }),
|
|
28
|
+
(0, typeorm_1.Column)({ type: 'varchar' }),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], SystemAuthSessionEntity.prototype, "session_identifier", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, typeorm_1.Column)({ type: 'timestamptz' }),
|
|
33
|
+
__metadata("design:type", Date)
|
|
34
|
+
], SystemAuthSessionEntity.prototype, "expires_at", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, typeorm_1.Column)({ type: 'timestamptz' }),
|
|
37
|
+
__metadata("design:type", Date)
|
|
38
|
+
], SystemAuthSessionEntity.prototype, "invalidated_at", void 0);
|
|
39
|
+
exports.SystemAuthSessionEntity = SystemAuthSessionEntity = __decorate([
|
|
40
|
+
(0, typeorm_1.Entity)({ name: 'sys_auth_sessions' })
|
|
41
|
+
], SystemAuthSessionEntity);
|
|
42
|
+
//# sourceMappingURL=system.auth.session.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"system.auth.session.entity.js","sourceRoot":"","sources":["../../../src/auth/entities/system.auth.session.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAgD;AAChD,mEAA+D;AAUxD,IAAM,uBAAuB,GAA7B,MAAM,uBAAwB,SAAQ,wBAAU;CAgBtD,CAAA;AAhBY,0DAAuB;AAElC;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;wDACT;AAGhB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;yDAC1B;AAIlB;IAFC,IAAA,eAAK,EAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IACvB,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;mEACD;AAG3B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;8BACpB,IAAI;2DAAC;AAGjB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;8BAChB,IAAI;+DAAC;kCAfV,uBAAuB;IADnC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,mBAAmB,EAAE,CAAC;GACzB,uBAAuB,CAgBnC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"system.refresh.token.entity.d.ts","sourceRoot":"","sources":["../../../src/auth/entities/system.refresh.token.entity.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;AAEnE,qBACa,wBAAyB,SAAQ,YAAY;IAExD,OAAO,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"system.refresh.token.entity.d.ts","sourceRoot":"","sources":["../../../src/auth/entities/system.refresh.token.entity.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;AAEnE,qBACa,wBAAyB,SAAQ,YAAY;IAExD,OAAO,EAAE,MAAM,CAAC;IAIhB,QAAQ,EAAE,OAAO,CAAC;IAGlB,UAAU,EAAE,MAAM,CAAC;IAGnB,UAAU,EAAE,MAAM,CAAC;IAGnB,UAAU,EAAE,MAAM,CAAC;IAGnB,UAAU,EAAE,IAAI,CAAC;IAGjB,UAAU,EAAE,IAAI,CAAC;IAGjB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACjC"}
|
|
@@ -19,6 +19,10 @@ __decorate([
|
|
|
19
19
|
(0, typeorm_1.Column)({ type: 'uuid' }),
|
|
20
20
|
__metadata("design:type", String)
|
|
21
21
|
], SystemRefreshTokenEntity.prototype, "user_id", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: false }),
|
|
24
|
+
__metadata("design:type", Boolean)
|
|
25
|
+
], SystemRefreshTokenEntity.prototype, "is_admin", void 0);
|
|
22
26
|
__decorate([
|
|
23
27
|
(0, typeorm_1.Column)({ type: 'varchar' }),
|
|
24
28
|
__metadata("design:type", String)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"system.refresh.token.entity.js","sourceRoot":"","sources":["../../../src/auth/entities/system.refresh.token.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAyC;AACzC,uEAAmE;AAG5D,IAAM,wBAAwB,GAA9B,MAAM,wBAAyB,SAAQ,4BAAY;
|
|
1
|
+
{"version":3,"file":"system.refresh.token.entity.js","sourceRoot":"","sources":["../../../src/auth/entities/system.refresh.token.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAyC;AACzC,uEAAmE;AAG5D,IAAM,wBAAwB,GAA9B,MAAM,wBAAyB,SAAQ,4BAAY;CAyBzD,CAAA;AAzBY,4DAAwB;AAEnC;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;yDACT;AAIhB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;0DAC1B;AAGlB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;4DACT;AAGnB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;4DACT;AAGnB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;4DACN;AAGnB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;8BACpB,IAAI;4DAAC;AAGjB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;8BACpB,IAAI;4DAAC;AAGjB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;;4DACM;mCAxBrB,wBAAwB;IADpC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,oBAAoB,EAAE,CAAC;GAC1B,wBAAwB,CAyBpC"}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RootEntity } from '../../common/entities/root.entity';
|
|
2
2
|
import { UserRoleEntity } from './user.role.entity';
|
|
3
|
-
export declare class SystemRoleEntity extends
|
|
3
|
+
export declare class SystemRoleEntity extends RootEntity {
|
|
4
4
|
is_active: boolean;
|
|
5
|
-
|
|
5
|
+
identifier: string;
|
|
6
6
|
name: string;
|
|
7
|
-
display_name: string;
|
|
8
7
|
description: string;
|
|
9
8
|
attributes: Record<string, any>;
|
|
10
9
|
userRoles: UserRoleEntity[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"system.role.entity.d.ts","sourceRoot":"","sources":["../../../src/auth/entities/system.role.entity.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"system.role.entity.d.ts","sourceRoot":"","sources":["../../../src/auth/entities/system.role.entity.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAGpD,qBACa,gBAAiB,SAAQ,UAAU;IAE9C,SAAS,EAAE,OAAO,CAAC;IAInB,UAAU,EAAE,MAAM,CAAC;IAGnB,IAAI,EAAE,MAAM,CAAC;IAGb,WAAW,EAAE,MAAM,CAAC;IAGpB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAIhC,SAAS,EAAE,cAAc,EAAE,CAAC;CAC7B"}
|
|
@@ -11,9 +11,9 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.SystemRoleEntity = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
|
-
const
|
|
14
|
+
const root_entity_1 = require("../../common/entities/root.entity");
|
|
15
15
|
const user_role_entity_1 = require("./user.role.entity");
|
|
16
|
-
let SystemRoleEntity = class SystemRoleEntity extends
|
|
16
|
+
let SystemRoleEntity = class SystemRoleEntity extends root_entity_1.RootEntity {
|
|
17
17
|
};
|
|
18
18
|
exports.SystemRoleEntity = SystemRoleEntity;
|
|
19
19
|
__decorate([
|
|
@@ -21,17 +21,14 @@ __decorate([
|
|
|
21
21
|
__metadata("design:type", Boolean)
|
|
22
22
|
], SystemRoleEntity.prototype, "is_active", void 0);
|
|
23
23
|
__decorate([
|
|
24
|
-
(0, typeorm_1.
|
|
25
|
-
__metadata("design:type", Boolean)
|
|
26
|
-
], SystemRoleEntity.prototype, "is_system", void 0);
|
|
27
|
-
__decorate([
|
|
24
|
+
(0, typeorm_1.Index)({ unique: true }),
|
|
28
25
|
(0, typeorm_1.Column)({ type: 'varchar' }),
|
|
29
26
|
__metadata("design:type", String)
|
|
30
|
-
], SystemRoleEntity.prototype, "
|
|
27
|
+
], SystemRoleEntity.prototype, "identifier", void 0);
|
|
31
28
|
__decorate([
|
|
32
29
|
(0, typeorm_1.Column)({ type: 'varchar' }),
|
|
33
30
|
__metadata("design:type", String)
|
|
34
|
-
], SystemRoleEntity.prototype, "
|
|
31
|
+
], SystemRoleEntity.prototype, "name", void 0);
|
|
35
32
|
__decorate([
|
|
36
33
|
(0, typeorm_1.Column)({ type: 'text' }),
|
|
37
34
|
__metadata("design:type", String)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"system.role.entity.js","sourceRoot":"","sources":["../../../src/auth/entities/system.role.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"system.role.entity.js","sourceRoot":"","sources":["../../../src/auth/entities/system.role.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA2D;AAC3D,mEAA+D;AAC/D,yDAAoD;AAI7C,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,wBAAU;CAoB/C,CAAA;AApBY,4CAAgB;AAE3B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;mDACxB;AAInB;IAFC,IAAA,eAAK,EAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IACvB,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;oDACT;AAGnB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;8CACf;AAGb;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;qDACL;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;;oDACM;AAIhC;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,iCAAc,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC;;mDACzB;2BAnBjB,gBAAgB;IAD5B,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;GACjB,gBAAgB,CAoB5B"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { AuthController } from './controllers/auth.controller';
|
|
2
|
+
import { AdminAuthController } from './controllers/admin.auth.controller';
|
|
2
3
|
import { ApiKeyService } from './services/api.key.service';
|
|
3
|
-
import { AuthContextService } from './services/auth.context.service';
|
|
4
4
|
import { AuthService } from './services/auth.service';
|
|
5
|
+
import { AdminAuthService } from './services/admin.auth.service';
|
|
5
6
|
import { GoogleAuthService } from './services/google.auth.service';
|
|
7
|
+
import { AdminLoginDto } from './dtos/admin.login.dto';
|
|
6
8
|
import { ChangePasswordDto } from './dtos/change.password.dto';
|
|
7
9
|
import { GoogleLoginDto } from './dtos/google.login.dto';
|
|
8
10
|
import { LoginDto } from './dtos/login.dto';
|
|
@@ -18,10 +20,10 @@ import { UserDetailsSubscriber } from './subscribers/user.details.subscriber';
|
|
|
18
20
|
import { UserRoleSubscriber } from './subscribers/user.role.subscriber';
|
|
19
21
|
import { UserSubscriber } from './subscribers/user.subscriber';
|
|
20
22
|
export declare const es6Classes: {
|
|
21
|
-
controllers: (typeof AuthController)[];
|
|
22
|
-
services: readonly [typeof ApiKeyService, typeof
|
|
23
|
+
controllers: (typeof AuthController | typeof AdminAuthController)[];
|
|
24
|
+
services: readonly [typeof ApiKeyService, typeof AuthService, typeof AdminAuthService, typeof GoogleAuthService];
|
|
23
25
|
libraries: any[];
|
|
24
|
-
dtos: (typeof LoginDto | typeof GoogleLoginDto | typeof RefreshTokenDto | typeof ChangePasswordDto)[];
|
|
26
|
+
dtos: (typeof LoginDto | typeof GoogleLoginDto | typeof RefreshTokenDto | typeof ChangePasswordDto | typeof AdminLoginDto)[];
|
|
25
27
|
jobs: (typeof SystemRefreshTokenJob | typeof SystemRoleJob | typeof UserDetailsJob | typeof UserJob | typeof UserRoleJob)[];
|
|
26
28
|
subscribers: (typeof SystemRefreshTokenSubscriber | typeof SystemRoleSubscriber | typeof UserDetailsSubscriber | typeof UserRoleSubscriber | typeof UserSubscriber)[];
|
|
27
29
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"es6.classes.d.ts","sourceRoot":"","sources":["../../src/auth/es6.classes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"es6.classes.d.ts","sourceRoot":"","sources":["../../src/auth/es6.classes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAC1E,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAE3D,OAAO,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AACxE,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,4BAA4B,EAAE,MAAM,+CAA+C,CAAC;AAC7F,OAAO,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAC;AAC5E,OAAO,EAAE,qBAAqB,EAAE,MAAM,uCAAuC,CAAC;AAC9E,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AACxE,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAE/D,eAAO,MAAM,UAAU;;;;;;;CA+BtB,CAAC"}
|