@neohm/nestend 3.1.3 → 3.1.5

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.
Files changed (64) hide show
  1. package/README.md +82 -66
  2. package/dist/admin/controllers/admin.role.controller.js +2 -2
  3. package/dist/admin/controllers/admin.role.controller.js.map +1 -1
  4. package/dist/admin/controllers/admin.scheduled.task.controller.d.ts +5 -6
  5. package/dist/admin/controllers/admin.scheduled.task.controller.d.ts.map +1 -1
  6. package/dist/admin/controllers/admin.scheduled.task.controller.js +9 -8
  7. package/dist/admin/controllers/admin.scheduled.task.controller.js.map +1 -1
  8. package/dist/admin/controllers/admin.tenant.controller.d.ts +5 -6
  9. package/dist/admin/controllers/admin.tenant.controller.d.ts.map +1 -1
  10. package/dist/admin/controllers/admin.tenant.controller.js +13 -12
  11. package/dist/admin/controllers/admin.tenant.controller.js.map +1 -1
  12. package/dist/admin/controllers/admin.tenant.user.controller.d.ts +30 -0
  13. package/dist/admin/controllers/admin.tenant.user.controller.d.ts.map +1 -0
  14. package/dist/admin/controllers/admin.tenant.user.controller.js +132 -0
  15. package/dist/admin/controllers/admin.tenant.user.controller.js.map +1 -0
  16. package/dist/admin/controllers/admin.user.controller.d.ts +6 -26
  17. package/dist/admin/controllers/admin.user.controller.d.ts.map +1 -1
  18. package/dist/admin/controllers/admin.user.controller.js +20 -98
  19. package/dist/admin/controllers/admin.user.controller.js.map +1 -1
  20. package/dist/admin/dtos/add.admin.role.dto.d.ts +4 -0
  21. package/dist/admin/dtos/add.admin.role.dto.d.ts.map +1 -0
  22. package/dist/admin/dtos/add.admin.role.dto.js +22 -0
  23. package/dist/admin/dtos/add.admin.role.dto.js.map +1 -0
  24. package/dist/admin/dtos/add.admin.user.dto.d.ts +1 -2
  25. package/dist/admin/dtos/add.admin.user.dto.d.ts.map +1 -1
  26. package/dist/admin/dtos/add.admin.user.dto.js +1 -6
  27. package/dist/admin/dtos/add.admin.user.dto.js.map +1 -1
  28. package/dist/admin/dtos/add.client.user.dto.d.ts +1 -0
  29. package/dist/admin/dtos/add.client.user.dto.d.ts.map +1 -1
  30. package/dist/admin/dtos/add.client.user.dto.js +12 -0
  31. package/dist/admin/dtos/add.client.user.dto.js.map +1 -1
  32. package/dist/admin/dtos/add.user.role.dto.d.ts +4 -0
  33. package/dist/admin/dtos/add.user.role.dto.d.ts.map +1 -0
  34. package/dist/admin/dtos/add.user.role.dto.js +22 -0
  35. package/dist/admin/dtos/add.user.role.dto.js.map +1 -0
  36. package/dist/admin/dtos/base.user.dto.d.ts +0 -1
  37. package/dist/admin/dtos/base.user.dto.d.ts.map +1 -1
  38. package/dist/admin/dtos/base.user.dto.js +0 -6
  39. package/dist/admin/dtos/base.user.dto.js.map +1 -1
  40. package/dist/admin/es6.classes.d.ts +4 -4
  41. package/dist/admin/es6.classes.d.ts.map +1 -1
  42. package/dist/admin/es6.classes.js +3 -2
  43. package/dist/admin/es6.classes.js.map +1 -1
  44. package/dist/admin/libraries/admin.user.data.processor.d.ts +3 -0
  45. package/dist/admin/libraries/admin.user.data.processor.d.ts.map +1 -1
  46. package/dist/admin/libraries/admin.user.data.processor.js +38 -2
  47. package/dist/admin/libraries/admin.user.data.processor.js.map +1 -1
  48. package/dist/admin/libraries/bulk.user.data.processor.d.ts.map +1 -1
  49. package/dist/admin/libraries/bulk.user.data.processor.js +0 -1
  50. package/dist/admin/libraries/bulk.user.data.processor.js.map +1 -1
  51. package/dist/admin/libraries/client.user.data.processor.d.ts +6 -0
  52. package/dist/admin/libraries/client.user.data.processor.d.ts.map +1 -1
  53. package/dist/admin/libraries/client.user.data.processor.js +74 -4
  54. package/dist/admin/libraries/client.user.data.processor.js.map +1 -1
  55. package/dist/auth/controllers/auth.controller.js +1 -1
  56. package/dist/index.d.ts +82 -180
  57. package/dist/index.d.ts.map +1 -1
  58. package/dist/index.js +141 -347
  59. package/dist/index.js.map +1 -1
  60. package/package.json +1 -1
  61. package/dist/admin/services/admin.detail.service.d.ts +0 -12
  62. package/dist/admin/services/admin.detail.service.d.ts.map +0 -1
  63. package/dist/admin/services/admin.detail.service.js +0 -44
  64. package/dist/admin/services/admin.detail.service.js.map +0 -1
@@ -0,0 +1,132 @@
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
+ var __param = (this && this.__param) || function (paramIndex, decorator) {
12
+ return function (target, key) { decorator(target, key, paramIndex); }
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.AdminTenantUserController = void 0;
16
+ const common_1 = require("@nestjs/common");
17
+ const swagger_1 = require("@nestjs/swagger");
18
+ const user_entity_1 = require("../../auth/entities/user.entity");
19
+ const user_type_enum_1 = require("../../auth/enums/user.type.enum");
20
+ const common_params_dto_1 = require("../../common/dtos/common.params.dto");
21
+ const add_bulk_users_dto_1 = require("../dtos/add.bulk.users.dto");
22
+ const add_client_user_dto_1 = require("../dtos/add.client.user.dto");
23
+ const client_user_list_dto_1 = require("../dtos/client.user.list.dto");
24
+ const bulk_user_data_processor_1 = require("../libraries/bulk.user.data.processor");
25
+ const client_user_data_processor_1 = require("../libraries/client.user.data.processor");
26
+ const client_user_delete_processor_1 = require("../libraries/client.user.delete.processor");
27
+ const client_user_list_processor_1 = require("../libraries/client.user.list.processor");
28
+ const admin_access_service_1 = require("../services/admin.access.service");
29
+ const tenant_service_1 = require("../../tenant/services/tenant.service");
30
+ const email_notification_service_1 = require("../../notification/services/email.notification.service");
31
+ const system_property_service_1 = require("../../common/services/system.property.service");
32
+ const sql_service_1 = require("../../common/services/sql.service");
33
+ let AdminTenantUserController = class AdminTenantUserController {
34
+ constructor(adminAccessService, tenantService, emailNotificationService, systemPropertyService, sqlService) {
35
+ this.adminAccessService = adminAccessService;
36
+ this.tenantService = tenantService;
37
+ this.emailNotificationService = emailNotificationService;
38
+ this.systemPropertyService = systemPropertyService;
39
+ this.sqlService = sqlService;
40
+ }
41
+ async clientUserDetail({ id }) {
42
+ await this.adminAccessService.validateContentReader();
43
+ const user = await user_entity_1.UserEntity.findOne({
44
+ where: { id, user_type: user_type_enum_1.UserType.TENANT_USER },
45
+ relations: { tenant: true },
46
+ });
47
+ if (!user)
48
+ throw new common_1.NotFoundException('No client user exists for this id');
49
+ return user;
50
+ }
51
+ async addClientUser(dto) {
52
+ await this.adminAccessService.validateAdmin();
53
+ return new client_user_data_processor_1.ClientUserDataProcessor(this.tenantService, this.emailNotificationService, this.systemPropertyService).process(dto);
54
+ }
55
+ async addClientUsersBulk(dto) {
56
+ await this.adminAccessService.validateAdmin();
57
+ return new bulk_user_data_processor_1.BulkUserDataProcessor(this.tenantService).process(dto);
58
+ }
59
+ async listClientUsers(dto) {
60
+ await this.adminAccessService.validateContentReader();
61
+ return new client_user_list_processor_1.ClientUserListProcessor(this.sqlService).process(dto);
62
+ }
63
+ async removeClientUser(id) {
64
+ const { user } = await this.adminAccessService.validateAdmin();
65
+ return new client_user_delete_processor_1.ClientUserDeleteProcessor(user).process(id);
66
+ }
67
+ };
68
+ exports.AdminTenantUserController = AdminTenantUserController;
69
+ __decorate([
70
+ (0, common_1.Get)(':id'),
71
+ (0, swagger_1.ApiOperation)({
72
+ summary: 'One client (tenant-scoped) user, in full.',
73
+ description: "Carries the user's tenant name alongside everything the listing leaves out. Requires the global super admin role.",
74
+ }),
75
+ __param(0, (0, common_1.Param)()),
76
+ __metadata("design:type", Function),
77
+ __metadata("design:paramtypes", [common_params_dto_1.CommonParamsDto]),
78
+ __metadata("design:returntype", Promise)
79
+ ], AdminTenantUserController.prototype, "clientUserDetail", null);
80
+ __decorate([
81
+ (0, common_1.Post)(),
82
+ (0, swagger_1.ApiOperation)({
83
+ summary: 'Register a single client (tenant-scoped) user.',
84
+ description: 'Requires the global super admin role.',
85
+ }),
86
+ __param(0, (0, common_1.Body)()),
87
+ __metadata("design:type", Function),
88
+ __metadata("design:paramtypes", [add_client_user_dto_1.AddClientUserDto]),
89
+ __metadata("design:returntype", Promise)
90
+ ], AdminTenantUserController.prototype, "addClientUser", null);
91
+ __decorate([
92
+ (0, common_1.Post)('bulk'),
93
+ (0, swagger_1.ApiOperation)({
94
+ summary: 'Bulk-register client users under one tenant.',
95
+ description: 'Requires the global super admin role.',
96
+ }),
97
+ __param(0, (0, common_1.Body)()),
98
+ __metadata("design:type", Function),
99
+ __metadata("design:paramtypes", [add_bulk_users_dto_1.AddBulkUsersDto]),
100
+ __metadata("design:returntype", Promise)
101
+ ], AdminTenantUserController.prototype, "addClientUsersBulk", null);
102
+ __decorate([
103
+ (0, common_1.Post)('list'),
104
+ (0, swagger_1.ApiOperation)({
105
+ summary: 'List, search and filter client (tenant-scoped) users.',
106
+ description: 'Scoped to tenant users and joined to their tenant, so rows carry `tenant_name` alongside `tenant_id`. Requires the global super admin role.',
107
+ }),
108
+ __param(0, (0, common_1.Body)()),
109
+ __metadata("design:type", Function),
110
+ __metadata("design:paramtypes", [client_user_list_dto_1.ClientUserListDto]),
111
+ __metadata("design:returntype", Promise)
112
+ ], AdminTenantUserController.prototype, "listClientUsers", null);
113
+ __decorate([
114
+ (0, common_1.Post)(':id/delete'),
115
+ (0, swagger_1.ApiOperation)({
116
+ summary: 'Delete a client user.',
117
+ description: "Soft delete, with the user's sessions and refresh tokens revoked in the same transaction so tokens already issued stop working immediately. Requires the global admin role.",
118
+ }),
119
+ __param(0, (0, common_1.Param)('id', common_1.ParseUUIDPipe)),
120
+ __metadata("design:type", Function),
121
+ __metadata("design:paramtypes", [String]),
122
+ __metadata("design:returntype", Promise)
123
+ ], AdminTenantUserController.prototype, "removeClientUser", null);
124
+ exports.AdminTenantUserController = AdminTenantUserController = __decorate([
125
+ (0, common_1.Controller)('api/admin/tenant-users'),
126
+ __metadata("design:paramtypes", [admin_access_service_1.AdminAccessService,
127
+ tenant_service_1.TenantService,
128
+ email_notification_service_1.EmailNotificationService,
129
+ system_property_service_1.SystemPropertyService,
130
+ sql_service_1.SqlService])
131
+ ], AdminTenantUserController);
132
+ //# sourceMappingURL=admin.tenant.user.controller.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"admin.tenant.user.controller.js","sourceRoot":"","sources":["../../../src/admin/controllers/admin.tenant.user.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAQwB;AACxB,6CAA+C;AAC/C,iEAA6D;AAC7D,oEAA2D;AAC3D,2EAAsE;AACtE,mEAA6D;AAC7D,qEAA+D;AAC/D,uEAAiE;AACjE,oFAA8E;AAC9E,wFAAkF;AAClF,4FAAsF;AACtF,wFAAkF;AAClF,2EAAsE;AACtE,yEAAqE;AACrE,uGAAkG;AAClG,2FAAsF;AACtF,mEAA+D;AAGxD,IAAM,yBAAyB,GAA/B,MAAM,yBAAyB;IACpC,YACqB,kBAAsC,EACtC,aAA4B,EAC5B,wBAAkD,EAClD,qBAA4C,EAC5C,UAAsB;QAJtB,uBAAkB,GAAlB,kBAAkB,CAAoB;QACtC,kBAAa,GAAb,aAAa,CAAe;QAC5B,6BAAwB,GAAxB,wBAAwB,CAA0B;QAClD,0BAAqB,GAArB,qBAAqB,CAAuB;QAC5C,eAAU,GAAV,UAAU,CAAY;IACxC,CAAC;IAQE,AAAN,KAAK,CAAC,gBAAgB,CAAU,EAAE,EAAE,EAAmB;QACrD,MAAM,IAAI,CAAC,kBAAkB,CAAC,qBAAqB,EAAE,CAAC;QAEtD,MAAM,IAAI,GAAG,MAAM,wBAAU,CAAC,OA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CAAC;IACV,IAAA,sBAAY,EAAC;QACZ,OAAO,EAAE,2CAA2C;QACpD,WAAW,EACT,mHAAmH;KACtH,CAAC;IACsB,WAAA,IAAA,cAAK,GAAE,CAAA;;qCAAS,mCAAe;;iEAUtD;AAOK;IALL,IAAA,aAAI,GAAE;IACN,IAAA,sBAAY,EAAC;QACZ,OAAO,EAAE,gDAAgD;QACzD,WAAW,EAAE,uCAAuC;KACrD,CAAC;IACmB,WAAA,IAAA,aAAI,GAAE,CAAA;;qCAAM,sCAAgB;;8DAOhD;AAOK;IALL,IAAA,aAAI,EAAC,MAAM,CAAC;IACZ,IAAA,sBAAY,EAAC;QACZ,OAAO,EAAE,8CAA8C;QACvD,WAAW,EAAE,uCAAuC;KACrD,CAAC;IACwB,WAAA,IAAA,aAAI,GAAE,CAAA;;qCAAM,oCAAe;;mEAGpD;AAQK;IANL,IAAA,aAAI,EAAC,MAAM,CAAC;IACZ,IAAA,sBAAY,EAAC;QACZ,OAAO,EAAE,uDAAuD;QAChE,WAAW,EACT,6IAA6I;KAChJ,CAAC;IACqB,WAAA,IAAA,aAAI,GAAE,CAAA;;qCAAM,wCAAiB;;gEAGnD;AAQK;IANL,IAAA,aAAI,EAAC,YAAY,CAAC;IAClB,IAAA,sBAAY,EAAC;QACZ,OAAO,EAAE,uBAAuB;QAChC,WAAW,EACT,6KAA6K;KAChL,CAAC;IACsB,WAAA,IAAA,cAAK,EAAC,IAAI,EAAE,sBAAa,CAAC,CAAA;;;;iEAGjD;oCAvEU,yBAAyB;IADrC,IAAA,mBAAU,EAAC,wBAAwB,CAAC;qCAGM,yCAAkB;QACvB,8BAAa;QACF,qDAAwB;QAC3B,+CAAqB;QAChC,wBAAU;GANhC,yBAAyB,CAwErC"}
@@ -1,35 +1,15 @@
1
1
  import { SqlService } from '../../common/services/sql.service';
2
- import { TenantService } from '../../tenant/services/tenant.service';
3
2
  import { AdminAccessService } from '../services/admin.access.service';
4
- import { AdminDetailService } from '../services/admin.detail.service';
5
- import { CommonParamsDto } from '../../common/dtos/common.params.dto';
6
- import { AddClientUserDto } from '../dtos/add.client.user.dto';
7
- import { AddBulkUsersDto } from '../dtos/add.bulk.users.dto';
8
3
  import { AddAdminUserDto } from '../dtos/add.admin.user.dto';
9
- import { ClientUserListDto } from '../dtos/client.user.list.dto';
10
4
  import { AdminUserListDto } from '../dtos/admin.user.list.dto';
11
- import { EmailNotificationService } from '../../notification/services/email.notification.service';
12
- import { SystemPropertyService } from '../../common/services/system.property.service';
5
+ import { AdminUserEntity } from '../../auth/entities/admin.user.entity';
6
+ import { CommonParamsDto } from '../../common/dtos/common.params.dto';
13
7
  export declare class AdminUserController {
14
8
  private readonly adminAccessService;
15
- private readonly adminDetailService;
16
- private readonly tenantService;
17
9
  private readonly sqlService;
18
- private readonly emailNotificationService;
19
- private readonly systemPropertyService;
20
- constructor(adminAccessService: AdminAccessService, adminDetailService: AdminDetailService, tenantService: TenantService, sqlService: SqlService, emailNotificationService: EmailNotificationService, systemPropertyService: SystemPropertyService);
21
- addClientUser(dto: AddClientUserDto): Promise<import("../..").UserEntity>;
22
- addClientUsersBulk(dto: AddBulkUsersDto): Promise<import("../types/admin.types").BulkUserResult>;
23
- listClientUsers(dto: ClientUserListDto): Promise<{
24
- records: import("../..").SqlRow[];
25
- total: number;
26
- page: number;
27
- limit: number;
28
- total_pages: number;
29
- }>;
30
- clientUserDetail({ id }: CommonParamsDto): Promise<import("../services/admin.detail.service").ClientUserDetail>;
31
- removeClientUser(id: string): Promise<import("../..").DeleteResult>;
32
- addAdminUser(dto: AddAdminUserDto): Promise<import("../..").AdminUserEntity>;
10
+ constructor(adminAccessService: AdminAccessService, sqlService: SqlService);
11
+ detail({ id }: CommonParamsDto): Promise<AdminUserEntity>;
12
+ addAdminUser(dto: AddAdminUserDto): Promise<AdminUserEntity>;
33
13
  listAdminUsers(dto: AdminUserListDto): Promise<{
34
14
  records: import("../..").SqlRow[];
35
15
  total: number;
@@ -37,6 +17,6 @@ export declare class AdminUserController {
37
17
  limit: number;
38
18
  total_pages: number;
39
19
  }>;
40
- removeAdminUser(id: string): Promise<import("../..").DeleteResult>;
20
+ removeAdminUser(id: string): Promise<import("../types/admin.types").DeleteResult>;
41
21
  }
42
22
  //# sourceMappingURL=admin.user.controller.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"admin.user.controller.d.ts","sourceRoot":"","sources":["../../../src/admin/controllers/admin.user.controller.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAC;AAC/D,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAQtE,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,wBAAwB,EAAE,MAAM,wDAAwD,CAAC;AAClG,OAAO,EAAE,qBAAqB,EAAE,MAAM,+CAA+C,CAAC;AAEtF,qBAGa,mBAAmB;IAE5B,OAAO,CAAC,QAAQ,CAAC,kBAAkB;IACnC,OAAO,CAAC,QAAQ,CAAC,kBAAkB;IACnC,OAAO,CAAC,QAAQ,CAAC,aAAa;IAC9B,OAAO,CAAC,QAAQ,CAAC,UAAU;IAC3B,OAAO,CAAC,QAAQ,CAAC,wBAAwB;IACzC,OAAO,CAAC,QAAQ,CAAC,qBAAqB;gBALrB,kBAAkB,EAAE,kBAAkB,EACtC,kBAAkB,EAAE,kBAAkB,EACtC,aAAa,EAAE,aAAa,EAC5B,UAAU,EAAE,UAAU,EACtB,wBAAwB,EAAE,wBAAwB,EAClD,qBAAqB,EAAE,qBAAqB;IAQzD,aAAa,CAAS,GAAG,EAAE,gBAAgB;IAc3C,kBAAkB,CAAS,GAAG,EAAE,eAAe;IAW/C,eAAe,CAAS,GAAG,EAAE,iBAAiB;;;;;;;IAW9C,gBAAgB,CAAU,EAAE,EAAE,EAAE,EAAE,eAAe;IAWjD,gBAAgB,CAA6B,EAAE,EAAE,MAAM;IAUvD,YAAY,CAAS,GAAG,EAAE,eAAe;IAWzC,cAAc,CAAS,GAAG,EAAE,gBAAgB;;;;;;;IAW5C,eAAe,CAA6B,EAAE,EAAE,MAAM;CAI7D"}
1
+ {"version":3,"file":"admin.user.controller.d.ts","sourceRoot":"","sources":["../../../src/admin/controllers/admin.user.controller.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAC;AAC/D,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAItE,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AACxE,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAEtE,qBAGa,mBAAmB;IAE5B,OAAO,CAAC,QAAQ,CAAC,kBAAkB;IACnC,OAAO,CAAC,QAAQ,CAAC,UAAU;gBADV,kBAAkB,EAAE,kBAAkB,EACtC,UAAU,EAAE,UAAU;IAQnC,MAAM,CAAU,EAAE,EAAE,EAAE,EAAE,eAAe;IAUvC,YAAY,CAAS,GAAG,EAAE,eAAe;IAWzC,cAAc,CAAS,GAAG,EAAE,gBAAgB;;;;;;;IAW5C,eAAe,CAA6B,EAAE,EAAE,MAAM;CAI7D"}
@@ -16,127 +16,53 @@ exports.AdminUserController = void 0;
16
16
  const common_1 = require("@nestjs/common");
17
17
  const swagger_1 = require("@nestjs/swagger");
18
18
  const sql_service_1 = require("../../common/services/sql.service");
19
- const tenant_service_1 = require("../../tenant/services/tenant.service");
20
19
  const admin_access_service_1 = require("../services/admin.access.service");
21
- const admin_detail_service_1 = require("../services/admin.detail.service");
22
- const common_params_dto_1 = require("../../common/dtos/common.params.dto");
23
- const client_user_data_processor_1 = require("../libraries/client.user.data.processor");
24
- const client_user_delete_processor_1 = require("../libraries/client.user.delete.processor");
25
- const client_user_list_processor_1 = require("../libraries/client.user.list.processor");
26
- const bulk_user_data_processor_1 = require("../libraries/bulk.user.data.processor");
27
20
  const admin_user_data_processor_1 = require("../libraries/admin.user.data.processor");
28
21
  const admin_user_delete_processor_1 = require("../libraries/admin.user.delete.processor");
29
22
  const admin_user_list_processor_1 = require("../libraries/admin.user.list.processor");
30
- const add_client_user_dto_1 = require("../dtos/add.client.user.dto");
31
- const add_bulk_users_dto_1 = require("../dtos/add.bulk.users.dto");
32
23
  const add_admin_user_dto_1 = require("../dtos/add.admin.user.dto");
33
- const client_user_list_dto_1 = require("../dtos/client.user.list.dto");
34
24
  const admin_user_list_dto_1 = require("../dtos/admin.user.list.dto");
35
- const email_notification_service_1 = require("../../notification/services/email.notification.service");
36
- const system_property_service_1 = require("../../common/services/system.property.service");
25
+ const admin_user_entity_1 = require("../../auth/entities/admin.user.entity");
26
+ const common_params_dto_1 = require("../../common/dtos/common.params.dto");
37
27
  let AdminUserController = class AdminUserController {
38
- constructor(adminAccessService, adminDetailService, tenantService, sqlService, emailNotificationService, systemPropertyService) {
28
+ constructor(adminAccessService, sqlService) {
39
29
  this.adminAccessService = adminAccessService;
40
- this.adminDetailService = adminDetailService;
41
- this.tenantService = tenantService;
42
30
  this.sqlService = sqlService;
43
- this.emailNotificationService = emailNotificationService;
44
- this.systemPropertyService = systemPropertyService;
45
- }
46
- async addClientUser(dto) {
47
- await this.adminAccessService.validateSuperAdmin();
48
- return new client_user_data_processor_1.ClientUserDataProcessor(this.tenantService, this.emailNotificationService, this.systemPropertyService).process(dto);
49
- }
50
- async addClientUsersBulk(dto) {
51
- await this.adminAccessService.validateSuperAdmin();
52
- return new bulk_user_data_processor_1.BulkUserDataProcessor(this.tenantService).process(dto);
53
- }
54
- async listClientUsers(dto) {
55
- await this.adminAccessService.validateSuperAdmin();
56
- return new client_user_list_processor_1.ClientUserListProcessor(this.sqlService).process(dto);
57
31
  }
58
- async clientUserDetail({ id }) {
59
- await this.adminAccessService.validateSuperAdmin();
60
- return this.adminDetailService.clientUser(id);
61
- }
62
- async removeClientUser(id) {
63
- const { user } = await this.adminAccessService.validateSuperAdmin();
64
- return new client_user_delete_processor_1.ClientUserDeleteProcessor(user).process(id);
32
+ async detail({ id }) {
33
+ await this.adminAccessService.validateContentReader();
34
+ return admin_user_entity_1.AdminUserEntity.findOne({ where: { id } });
65
35
  }
66
36
  async addAdminUser(dto) {
67
- const { user } = await this.adminAccessService.validateAdmin();
37
+ const { user } = await this.adminAccessService.validateSuperAdmin();
68
38
  return new admin_user_data_processor_1.AdminUserDataProcessor(user).process(dto);
69
39
  }
70
40
  async listAdminUsers(dto) {
71
- await this.adminAccessService.validateAdmin();
41
+ await this.adminAccessService.validateContentReader();
72
42
  return new admin_user_list_processor_1.AdminUserListProcessor(this.sqlService).process(dto);
73
43
  }
74
44
  async removeAdminUser(id) {
75
- const { user } = await this.adminAccessService.validateAdmin();
45
+ const { user } = await this.adminAccessService.validateSuperAdmin();
76
46
  return new admin_user_delete_processor_1.AdminUserDeleteProcessor(user).process(id);
77
47
  }
78
48
  };
79
49
  exports.AdminUserController = AdminUserController;
80
50
  __decorate([
81
- (0, common_1.Post)('clients'),
82
- (0, swagger_1.ApiOperation)({
83
- summary: 'Register a single client (tenant-scoped) user.',
84
- description: 'Requires the global super admin role.',
85
- }),
86
- __param(0, (0, common_1.Body)()),
87
- __metadata("design:type", Function),
88
- __metadata("design:paramtypes", [add_client_user_dto_1.AddClientUserDto]),
89
- __metadata("design:returntype", Promise)
90
- ], AdminUserController.prototype, "addClientUser", null);
91
- __decorate([
92
- (0, common_1.Post)('clients/bulk'),
93
- (0, swagger_1.ApiOperation)({
94
- summary: 'Bulk-register client users under one tenant.',
95
- description: 'Requires the global super admin role.',
96
- }),
97
- __param(0, (0, common_1.Body)()),
98
- __metadata("design:type", Function),
99
- __metadata("design:paramtypes", [add_bulk_users_dto_1.AddBulkUsersDto]),
100
- __metadata("design:returntype", Promise)
101
- ], AdminUserController.prototype, "addClientUsersBulk", null);
102
- __decorate([
103
- (0, common_1.Post)('clients/list'),
51
+ (0, common_1.Get)(':id'),
104
52
  (0, swagger_1.ApiOperation)({
105
- summary: 'List, search and filter client (tenant-scoped) users.',
106
- description: 'Scoped to tenant users and joined to their tenant, so rows carry `tenant_name` alongside `tenant_id`. Requires the global super admin role.',
107
- }),
108
- __param(0, (0, common_1.Body)()),
109
- __metadata("design:type", Function),
110
- __metadata("design:paramtypes", [client_user_list_dto_1.ClientUserListDto]),
111
- __metadata("design:returntype", Promise)
112
- ], AdminUserController.prototype, "listClientUsers", null);
113
- __decorate([
114
- (0, common_1.Get)('clients/:id'),
115
- (0, swagger_1.ApiOperation)({
116
- summary: 'One client (tenant-scoped) user, in full.',
117
- description: "Carries the user's tenant name alongside everything the listing leaves out. Requires the global super admin role.",
53
+ summary: `Get admin user's details`,
54
+ description: `Requires at least global content reader role`,
118
55
  }),
119
56
  __param(0, (0, common_1.Param)()),
120
57
  __metadata("design:type", Function),
121
58
  __metadata("design:paramtypes", [common_params_dto_1.CommonParamsDto]),
122
59
  __metadata("design:returntype", Promise)
123
- ], AdminUserController.prototype, "clientUserDetail", null);
124
- __decorate([
125
- (0, common_1.Post)('clients/:id/delete'),
126
- (0, swagger_1.ApiOperation)({
127
- summary: 'Delete a client user.',
128
- description: "Soft delete, with the user's sessions and refresh tokens revoked in the same transaction so tokens already issued stop working immediately. Requires the global super admin role.",
129
- }),
130
- __param(0, (0, common_1.Param)('id', common_1.ParseUUIDPipe)),
131
- __metadata("design:type", Function),
132
- __metadata("design:paramtypes", [String]),
133
- __metadata("design:returntype", Promise)
134
- ], AdminUserController.prototype, "removeClientUser", null);
60
+ ], AdminUserController.prototype, "detail", null);
135
61
  __decorate([
136
- (0, common_1.Post)('admins'),
62
+ (0, common_1.Post)(),
137
63
  (0, swagger_1.ApiOperation)({
138
- summary: 'Create a new global admin user.',
139
- description: 'Requires at least the global admin role.',
64
+ summary: 'Create or update global admin user.',
65
+ description: 'Requires at least the global super admin role.',
140
66
  }),
141
67
  __param(0, (0, common_1.Body)()),
142
68
  __metadata("design:type", Function),
@@ -144,10 +70,10 @@ __decorate([
144
70
  __metadata("design:returntype", Promise)
145
71
  ], AdminUserController.prototype, "addAdminUser", null);
146
72
  __decorate([
147
- (0, common_1.Post)('admins/list'),
73
+ (0, common_1.Post)('list'),
148
74
  (0, swagger_1.ApiOperation)({
149
75
  summary: 'List, search and filter back-office admin users.',
150
- description: 'The column allowlist never includes `password`, so it cannot leak here. Requires at least the global admin role.',
76
+ description: 'The column allowlist never includes `password`, so it cannot leak here. Requires at least the global content reader role.',
151
77
  }),
152
78
  __param(0, (0, common_1.Body)()),
153
79
  __metadata("design:type", Function),
@@ -155,7 +81,7 @@ __decorate([
155
81
  __metadata("design:returntype", Promise)
156
82
  ], AdminUserController.prototype, "listAdminUsers", null);
157
83
  __decorate([
158
- (0, common_1.Post)('admins/:id/delete'),
84
+ (0, common_1.Post)(':id/delete'),
159
85
  (0, swagger_1.ApiOperation)({
160
86
  summary: 'Delete a back-office admin user.',
161
87
  description: 'Soft delete, with sessions and refresh tokens revoked. An admin cannot delete their own account, and the last remaining super admin cannot be deleted — either would leave the back office unreachable. Role grants are kept, so restoring the row restores the access it had. Requires at least the global admin role.',
@@ -170,10 +96,6 @@ exports.AdminUserController = AdminUserController = __decorate([
170
96
  (0, swagger_1.ApiBearerAuth)(),
171
97
  (0, common_1.Controller)('api/admin/users'),
172
98
  __metadata("design:paramtypes", [admin_access_service_1.AdminAccessService,
173
- admin_detail_service_1.AdminDetailService,
174
- tenant_service_1.TenantService,
175
- sql_service_1.SqlService,
176
- email_notification_service_1.EmailNotificationService,
177
- system_property_service_1.SystemPropertyService])
99
+ sql_service_1.SqlService])
178
100
  ], AdminUserController);
179
101
  //# sourceMappingURL=admin.user.controller.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"admin.user.controller.js","sourceRoot":"","sources":["../../../src/admin/controllers/admin.user.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAOwB;AACxB,6CAAuE;AACvE,mEAA+D;AAC/D,yEAAqE;AACrE,2EAAsE;AACtE,2EAAsE;AACtE,2EAAsE;AACtE,wFAAkF;AAClF,4FAAsF;AACtF,wFAAkF;AAClF,oFAA8E;AAC9E,sFAAgF;AAChF,0FAAoF;AACpF,sFAAgF;AAChF,qEAA+D;AAC/D,mEAA6D;AAC7D,mEAA6D;AAC7D,uEAAiE;AACjE,qEAA+D;AAC/D,uGAAkG;AAClG,2FAAsF;AAK/E,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;IAC9B,YACmB,kBAAsC,EACtC,kBAAsC,EACtC,aAA4B,EAC5B,UAAsB,EACtB,wBAAkD,EAClD,qBAA4C;QAL5C,uBAAkB,GAAlB,kBAAkB,CAAoB;QACtC,uBAAkB,GAAlB,kBAAkB,CAAoB;QACtC,kBAAa,GAAb,aAAa,CAAe;QAC5B,eAAU,GAAV,UAAU,CAAY;QACtB,6BAAwB,GAAxB,wBAAwB,CAA0B;QAClD,0BAAqB,GAArB,qBAAqB,CAAuB;IAC5D,CAAC;IAOE,AAAN,KAAK,CAAC,aAAa,CAAS,GAAqB;QAC/C,MAAM,IAAI,CAAC,kBAAkB,CAAC,kBAAkB,EAAE,CAAC;QACnD,OAAO,IAAI,oDAAuB,CAChC,IAAI,CAAC,aAAa,EAClB,IAAI,CAAC,wBAAwB,EAC7B,IAAI,CAAC,qBAAqB,CAC3B,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IAC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AC,IAAI,EAAE,sBAAa,CAAC,CAAA;;;;2DAGjD;AAOK;IALL,IAAA,aAAI,EAAC,QAAQ,CAAC;IACd,IAAA,sBAAY,EAAC;QACZ,OAAO,EAAE,iCAAiC;QAC1C,WAAW,EAAE,0CAA0C;KACxD,CAAC;IACkB,WAAA,IAAA,aAAI,GAAE,CAAA;;qCAAM,oCAAe;;uDAG9C;AAQK;IANL,IAAA,aAAI,EAAC,aAAa,CAAC;IACnB,IAAA,sBAAY,EAAC;QACZ,OAAO,EAAE,kDAAkD;QAC3D,WAAW,EACT,kHAAkH;KACrH,CAAC;IACoB,WAAA,IAAA,aAAI,GAAE,CAAA;;qCAAM,sCAAgB;;yDAGjD;AAQK;IANL,IAAA,aAAI,EAAC,mBAAmB,CAAC;IACzB,IAAA,sBAAY,EAAC;QACZ,OAAO,EAAE,kCAAkC;QAC3C,WAAW,EACT,yTAAyT;KAC5T,CAAC;IACqB,WAAA,IAAA,cAAK,EAAC,IAAI,EAAE,sBAAa,CAAC,CAAA;;;;0DAGhD;8BAjGU,mBAAmB;IAH/B,IAAA,iBAAO,EAAC,eAAe,CAAC;IACxB,IAAA,uBAAa,GAAE;IACf,IAAA,mBAAU,EAAC,iBAAiB,CAAC;qCAGW,yCAAkB;QAClB,yCAAkB;QACvB,8BAAa;QAChB,wBAAU;QACI,qDAAwB;QAC3B,+CAAqB;GAPpD,mBAAmB,CAkG/B"}
1
+ {"version":3,"file":"admin.user.controller.js","sourceRoot":"","sources":["../../../src/admin/controllers/admin.user.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAOwB;AACxB,6CAAuE;AACvE,mEAA+D;AAC/D,2EAAsE;AACtE,sFAAgF;AAChF,0FAAoF;AACpF,sFAAgF;AAChF,mEAA6D;AAC7D,qEAA+D;AAC/D,6EAAwE;AACxE,2EAAsE;AAK/D,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;IAC9B,YACmB,kBAAsC,EACtC,UAAsB;QADtB,uBAAkB,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,qCAAqC;QAC9C,WAAW,EAAE,gDAAgD;KAC9D,CAAC;IACkB,WAAA,IAAA,aAAI,GAAE,CAAA;;qCAAM,oCAAe;;uDAG9C;AAQK;IANL,IAAA,aAAI,EAAC,MAAM,CAAC;IACZ,IAAA,sBAAY,EAAC;QACZ,OAAO,EAAE,kDAAkD;QAC3D,WAAW,EACT,2HAA2H;KAC9H,CAAC;IACoB,WAAA,IAAA,aAAI,GAAE,CAAA;;qCAAM,sCAAgB;;yDAGjD;AAQK;IANL,IAAA,aAAI,EAAC,YAAY,CAAC;IAClB,IAAA,sBAAY,EAAC;QACZ,OAAO,EAAE,kCAAkC;QAC3C,WAAW,EACT,yTAAyT;KAC5T,CAAC;IACqB,WAAA,IAAA,cAAK,EAAC,IAAI,EAAE,sBAAa,CAAC,CAAA;;;;0DAGhD;8BA9CU,mBAAmB;IAH/B,IAAA,iBAAO,EAAC,eAAe,CAAC;IACxB,IAAA,uBAAa,GAAE;IACf,IAAA,mBAAU,EAAC,iBAAiB,CAAC;qCAGW,yCAAkB;QAC1B,wBAAU;GAH9B,mBAAmB,CA+C/B"}
@@ -0,0 +1,4 @@
1
+ export declare class AddAdminRoleDto {
2
+ admin_role_id: string;
3
+ }
4
+ //# sourceMappingURL=add.admin.role.dto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"add.admin.role.dto.d.ts","sourceRoot":"","sources":["../../../src/admin/dtos/add.admin.role.dto.ts"],"names":[],"mappings":"AAEA,qBAAa,eAAe;IAG1B,aAAa,EAAE,MAAM,CAAC;CACvB"}
@@ -0,0 +1,22 @@
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.AddAdminRoleDto = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ class AddAdminRoleDto {
15
+ }
16
+ exports.AddAdminRoleDto = AddAdminRoleDto;
17
+ __decorate([
18
+ (0, class_validator_1.IsNotEmpty)(),
19
+ (0, class_validator_1.IsUUID)(),
20
+ __metadata("design:type", String)
21
+ ], AddAdminRoleDto.prototype, "admin_role_id", void 0);
22
+ //# sourceMappingURL=add.admin.role.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"add.admin.role.dto.js","sourceRoot":"","sources":["../../../src/admin/dtos/add.admin.role.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAqD;AAErD,MAAa,eAAe;CAI3B;AAJD,0CAIC;AADC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;sDACa"}
@@ -3,8 +3,7 @@ export declare class AddAdminUserDto extends CommonPayloadDto {
3
3
  name: string;
4
4
  email: string;
5
5
  username: string;
6
- password: string;
6
+ password?: string;
7
7
  role_ids: string[];
8
- attributes?: Record<string, any>;
9
8
  }
10
9
  //# sourceMappingURL=add.admin.user.dto.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"add.admin.user.dto.d.ts","sourceRoot":"","sources":["../../../src/admin/dtos/add.admin.user.dto.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AAGxE,qBAAa,eAAgB,SAAQ,gBAAgB;IAInD,IAAI,EAAE,MAAM,CAAC;IAKb,KAAK,EAAE,MAAM,CAAC;IAKd,QAAQ,EAAE,MAAM,CAAC;IAMjB,QAAQ,EAAE,MAAM,CAAC;IAUjB,QAAQ,EAAE,MAAM,EAAE,CAAC;IAKnB,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAClC"}
1
+ {"version":3,"file":"add.admin.user.dto.d.ts","sourceRoot":"","sources":["../../../src/admin/dtos/add.admin.user.dto.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AAGxE,qBAAa,eAAgB,SAAQ,gBAAgB;IAInD,IAAI,EAAE,MAAM,CAAC;IAKb,KAAK,EAAE,MAAM,CAAC;IAKd,QAAQ,EAAE,MAAM,CAAC;IAOjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAUlB,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB"}
@@ -36,6 +36,7 @@ __decorate([
36
36
  ], AddAdminUserDto.prototype, "username", void 0);
37
37
  __decorate([
38
38
  (0, swagger_1.ApiProperty)({ example: 'S3curePass!', minLength: 8 }),
39
+ (0, class_validator_1.IsOptional)(),
39
40
  (0, class_validator_1.IsString)(),
40
41
  (0, class_validator_1.MinLength)(8),
41
42
  (0, class_validator_1.MaxLength)(72),
@@ -52,10 +53,4 @@ __decorate([
52
53
  (0, class_validator_1.IsUUID)('all', { each: true }),
53
54
  __metadata("design:type", Array)
54
55
  ], AddAdminUserDto.prototype, "role_ids", void 0);
55
- __decorate([
56
- (0, swagger_1.ApiPropertyOptional)({ type: 'object', additionalProperties: true }),
57
- (0, class_validator_1.IsOptional)(),
58
- (0, class_validator_1.IsObject)(),
59
- __metadata("design:type", Object)
60
- ], AddAdminUserDto.prototype, "attributes", void 0);
61
56
  //# sourceMappingURL=add.admin.user.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"add.admin.user.dto.js","sourceRoot":"","sources":["../../../src/admin/dtos/add.admin.user.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAUyB;AACzB,6CAAmE;AACnE,6EAA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AA8C;AAC9C,6EAAwE;AAGxE,MAAa,eAAgB,SAAQ,qCAAgB;CAgCpD;AAhCD,0CAgCC;AA5BC;IAHC,IAAA,qBAAW,EAAC,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC;IACpC,IAAA,0BAAQ,GAAE;IACV,IAAA,2BAAS,EAAC,GAAG,CAAC;;6CACF;AAKb;IAHC,IAAA,qBAAW,EAAC,EAAE,OAAO,EAAE,kBAAkB,EAAE,CAAC;IAC5C,IAAA,yBAAO,GAAE;IACT,IAAA,2BAAS,EAAC,GAAG,CAAC;;8CACD;AAKd;IAHC,IAAA,qBAAW,EAAC,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC;IACpC,IAAA,0BAAQ,GAAE;IACV,IAAA,2BAAS,EAAC,GAAG,CAAC;;iDACE;AAOjB;IALC,IAAA,qBAAW,EAAC,EAAE,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,CAAC,EAAE,CAAC;IACrD,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,2BAAS,EAAC,CAAC,CAAC;IACZ,IAAA,2BAAS,EAAC,EAAE,CAAC;;iDACI;AAUlB;IARC,IAAA,qBAAW,EAAC;QACX,IAAI,EAAE,CAAC,MAAM,CAAC;QACd,MAAM,EAAE,MAAM;QACd,WAAW,EAAE,gDAAgD;KAC9D,CAAC;IACD,IAAA,yBAAO,GAAE;IACT,IAAA,8BAAY,EAAC,CAAC,CAAC;IACf,IAAA,wBAAM,EAAC,KAAK,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;iDACX"}
@@ -1,5 +1,6 @@
1
1
  import { BaseUserDto } from './base.user.dto';
2
2
  export declare class AddClientUserDto extends BaseUserDto {
3
3
  tenant_id: string;
4
+ role_ids: string[];
4
5
  }
5
6
  //# sourceMappingURL=add.client.user.dto.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"add.client.user.dto.d.ts","sourceRoot":"","sources":["../../../src/admin/dtos/add.client.user.dto.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAG9C,qBAAa,gBAAiB,SAAQ,WAAW;IAI/C,SAAS,EAAE,MAAM,CAAC;CACnB"}
1
+ {"version":3,"file":"add.client.user.dto.d.ts","sourceRoot":"","sources":["../../../src/admin/dtos/add.client.user.dto.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAG9C,qBAAa,gBAAiB,SAAQ,WAAW;IAI/C,SAAS,EAAE,MAAM,CAAC;IAWlB,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB"}
@@ -22,4 +22,16 @@ __decorate([
22
22
  (0, class_validator_1.IsNotEmpty)(),
23
23
  __metadata("design:type", String)
24
24
  ], AddClientUserDto.prototype, "tenant_id", void 0);
25
+ __decorate([
26
+ (0, swagger_1.ApiProperty)({
27
+ type: [String],
28
+ format: 'uuid',
29
+ description: 'sys_roles uuids, roles to be granted to a client user',
30
+ }),
31
+ (0, class_validator_1.IsOptional)(),
32
+ (0, class_validator_1.IsArray)(),
33
+ (0, class_validator_1.ArrayMinSize)(1),
34
+ (0, class_validator_1.IsUUID)('all', { each: true }),
35
+ __metadata("design:type", Array)
36
+ ], AddClientUserDto.prototype, "role_ids", void 0);
25
37
  //# sourceMappingURL=add.client.user.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"add.client.user.dto.js","sourceRoot":"","sources":["../../../src/admin/dtos/add.client.user.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAqD;AACrD,6CAA8C;AAC9C,mDAA8C;AAG9C,MAAa,gBAAiB,SAAQ,2BAAW;CAKhD;AALD,4CAKC;AADC;IAHC,IAAA,qBAAW,EAAC,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,6BAA6B,EAAE,CAAC;IAC3E,IAAA,wBAAM,GAAE;IACR,IAAA,4BAAU,GAAE;;mDACK"}
1
+ {"version":3,"file":"add.client.user.dto.js","sourceRoot":"","sources":["../../../src/admin/dtos/add.client.user.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAMyB;AACzB,6CAA8C;AAC9C,mDAA8C;AAG9C,MAAa,gBAAiB,SAAQ,2BAAW;CAgBhD;AAhBD,4CAgBC;AAZC;IAHC,IAAA,qBAAW,EAAC,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,6BAA6B,EAAE,CAAC;IAC3E,IAAA,wBAAM,GAAE;IACR,IAAA,4BAAU,GAAE;;mDACK;AAWlB;IATC,IAAA,qBAAW,EAAC;QACX,IAAI,EAAE,CAAC,MAAM,CAAC;QACd,MAAM,EAAE,MAAM;QACd,WAAW,EAAE,uDAAuD;KACrE,CAAC;IACD,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;IACT,IAAA,8BAAY,EAAC,CAAC,CAAC;IACf,IAAA,wBAAM,EAAC,KAAK,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;kDACX"}
@@ -0,0 +1,4 @@
1
+ export declare class AddUserRoleDto {
2
+ role_id: string;
3
+ }
4
+ //# sourceMappingURL=add.user.role.dto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"add.user.role.dto.d.ts","sourceRoot":"","sources":["../../../src/admin/dtos/add.user.role.dto.ts"],"names":[],"mappings":"AAEA,qBAAa,cAAc;IAGzB,OAAO,EAAE,MAAM,CAAC;CACjB"}
@@ -0,0 +1,22 @@
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.AddUserRoleDto = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ class AddUserRoleDto {
15
+ }
16
+ exports.AddUserRoleDto = AddUserRoleDto;
17
+ __decorate([
18
+ (0, class_validator_1.IsNotEmpty)(),
19
+ (0, class_validator_1.IsUUID)(),
20
+ __metadata("design:type", String)
21
+ ], AddUserRoleDto.prototype, "role_id", void 0);
22
+ //# sourceMappingURL=add.user.role.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"add.user.role.dto.js","sourceRoot":"","sources":["../../../src/admin/dtos/add.user.role.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAqD;AAErD,MAAa,cAAc;CAI1B;AAJD,wCAIC;AADC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;+CACO"}
@@ -7,6 +7,5 @@ export declare class BaseUserDto extends CommonPayloadDto {
7
7
  contact_code?: string;
8
8
  contact?: string;
9
9
  active?: boolean;
10
- attributes?: Record<string, any>;
11
10
  }
12
11
  //# sourceMappingURL=base.user.dto.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"base.user.dto.d.ts","sourceRoot":"","sources":["../../../src/admin/dtos/base.user.dto.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AAQxE,qBAAa,WAAY,SAAQ,gBAAgB;IAI/C,SAAS,EAAE,MAAM,CAAC;IAKlB,KAAK,EAAE,MAAM,CAAC;IAMd,QAAQ,EAAE,MAAM,CAAC;IAMjB,OAAO,CAAC,EAAE,MAAM,CAAC;IAMjB,YAAY,CAAC,EAAE,MAAM,CAAC;IAMtB,OAAO,CAAC,EAAE,MAAM,CAAC;IAKjB,MAAM,CAAC,EAAE,OAAO,CAAC;IAKjB,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAClC"}
1
+ {"version":3,"file":"base.user.dto.d.ts","sourceRoot":"","sources":["../../../src/admin/dtos/base.user.dto.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AAQxE,qBAAa,WAAY,SAAQ,gBAAgB;IAI/C,SAAS,EAAE,MAAM,CAAC;IAKlB,KAAK,EAAE,MAAM,CAAC;IAMd,QAAQ,EAAE,MAAM,CAAC;IAMjB,OAAO,CAAC,EAAE,MAAM,CAAC;IAMjB,YAAY,CAAC,EAAE,MAAM,CAAC;IAMtB,OAAO,CAAC,EAAE,MAAM,CAAC;IAKjB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB"}
@@ -62,10 +62,4 @@ __decorate([
62
62
  (0, class_validator_1.IsBoolean)(),
63
63
  __metadata("design:type", Boolean)
64
64
  ], BaseUserDto.prototype, "active", void 0);
65
- __decorate([
66
- (0, swagger_1.ApiPropertyOptional)({ type: 'object', additionalProperties: true }),
67
- (0, class_validator_1.IsOptional)(),
68
- (0, class_validator_1.IsObject)(),
69
- __metadata("design:type", Object)
70
- ], BaseUserDto.prototype, "attributes", void 0);
71
65
  //# sourceMappingURL=base.user.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"base.user.dto.js","sourceRoot":"","sources":["../../../src/admin/dtos/base.user.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAQyB;AACzB,6CAAmE;AACnE,6EAAwE;AAQxE,MAAa,WAAY,SAAQ,qCAAgB;CA4ChD;AA5CD,kCA4CC;AAxCC;IAHC,IAAA,qBAAW,EAAC,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC;IACpC,IAAA,0BAAQ,GAAE;IACV,IAAA,2BAAS,EAAC,GAAG,CAAC;;8CACG;AAKlB;IAHC,IAAA,qBAAW,EA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askController } from './controllers/admin.scheduled.task.controller';
3
3
  import { AdminTenantController } from './controllers/admin.tenant.controller';
4
+ import { AdminTenantUserController } from './controllers/admin.tenant.user.controller';
4
5
  import { AdminUserController } from './controllers/admin.user.controller';
5
6
  import { AdminAccessService } from './services/admin.access.service';
6
- import { AdminDetailService } from './services/admin.detail.service';
7
7
  import { AdminUserDataProcessor } from './libraries/admin.user.data.processor';
8
8
  import { AdminUserDeleteProcessor } from './libraries/admin.user.delete.processor';
9
9
  import { AdminUserListProcessor } from './libraries/admin.user.list.processor';
@@ -24,9 +24,9 @@ import { AddTenantDto } from './dtos/add.tenant.dto';
24
24
  import { BaseUserDto } from './dtos/base.user.dto';
25
25
  import { RoleListDto } from './dtos/role.list.dto';
26
26
  export declare const es6Classes: {
27
- controllers: (typeof AdminRoleController | typeof AdminScheduledTaskController | typeof AdminTenantController | typeof AdminUserController)[];
28
- services: readonly [typeof AdminAccessService, typeof AdminDetailService];
29
- libraries: (typeof RoleListProcessor | typeof AdminRoleListProcessor | typeof ScheduledTaskDataProcessor | typeof ScheduledTaskDeleteProcessor | typeof ScheduledTaskListProcessor | typeof TenantDataProcessor | typeof TenantDeleteProcessor | typeof TenantListProcessor | typeof ClientUserDataProcessor | typeof ClientUserDeleteProcessor | typeof ClientUserListProcessor | typeof BulkUserDataProcessor | typeof AdminUserDataProcessor | typeof AdminUserDeleteProcessor | typeof AdminUserListProcessor)[];
27
+ controllers: (typeof AdminRoleController | typeof AdminScheduledTaskController | typeof AdminTenantController | typeof AdminTenantUserController | typeof AdminUserController)[];
28
+ services: readonly [typeof AdminAccessService];
29
+ libraries: (typeof RoleListProcessor | typeof AdminRoleListProcessor | typeof ScheduledTaskDataProcessor | typeof ScheduledTaskDeleteProcessor | typeof ScheduledTaskListProcessor | typeof TenantDataProcessor | typeof TenantDeleteProcessor | typeof TenantListProcessor | typeof BulkUserDataProcessor | typeof ClientUserDataProcessor | typeof ClientUserDeleteProcessor | typeof ClientUserListProcessor | typeof AdminUserDataProcessor | typeof AdminUserDeleteProcessor | typeof AdminUserListProcessor)[];
30
30
  dtos: (typeof RoleListDto | typeof ScheduleDto | typeof AddTenantDto | typeof BaseUserDto | typeof AddAdminUserDto)[];
31
31
  jobs: any[];
32
32
  subscribers: any[];