@rafikidota/iroh 0.24.1 → 0.26.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 +48 -5
- package/dist/common/decorators/generic-get-by-id.decorator.js +2 -1
- package/dist/common/decorators/generic-get-by-id.decorator.js.map +1 -1
- package/dist/common/decorators/generic-get.decorator.js +3 -2
- package/dist/common/decorators/generic-get.decorator.js.map +1 -1
- package/dist/common/dto/index.d.ts +3 -0
- package/dist/common/dto/index.js +3 -0
- package/dist/common/dto/index.js.map +1 -1
- package/dist/common/dto/parsed-query-option.dto.d.ts +4 -0
- package/dist/common/dto/parsed-query-option.dto.js +32 -0
- package/dist/common/dto/parsed-query-option.dto.js.map +1 -0
- package/dist/common/dto/parsed-search.dto.d.ts +5 -0
- package/dist/common/dto/parsed-search.dto.js +33 -0
- package/dist/common/dto/parsed-search.dto.js.map +1 -0
- package/dist/common/dto/query-option.dto.d.ts +3 -0
- package/dist/common/dto/query-option.dto.js +30 -0
- package/dist/common/dto/query-option.dto.js.map +1 -0
- package/dist/common/dto/search.dto.d.ts +0 -4
- package/dist/common/dto/search.dto.js +4 -20
- package/dist/common/dto/search.dto.js.map +1 -1
- package/dist/common/index.d.ts +1 -0
- package/dist/common/index.js +1 -0
- package/dist/common/index.js.map +1 -1
- package/dist/common/interfaces/crud.controller.d.ts +2 -1
- package/dist/common/interfaces/crud.repository.d.ts +2 -1
- package/dist/common/interfaces/crud.service.d.ts +2 -1
- package/dist/common/loggers/index.d.ts +2 -1
- package/dist/common/loggers/index.js +2 -1
- package/dist/common/loggers/index.js.map +1 -1
- package/dist/common/loggers/notification/index.d.ts +3 -0
- package/dist/common/loggers/notification/index.js +20 -0
- package/dist/common/loggers/notification/index.js.map +1 -0
- package/dist/common/loggers/notification/notification.type.d.ts +8 -0
- package/dist/common/loggers/notification/notification.type.enum.d.ts +6 -0
- package/dist/common/loggers/notification/notification.type.enum.js +10 -0
- package/dist/common/loggers/notification/notification.type.enum.js.map +1 -0
- package/dist/common/loggers/notification/notification.type.js +3 -0
- package/dist/common/loggers/notification/notification.type.js.map +1 -0
- package/dist/common/loggers/notification/notifier.d.ts +11 -0
- package/dist/common/loggers/notification/notifier.js +57 -0
- package/dist/common/loggers/notification/notifier.js.map +1 -0
- package/dist/common/pipes/index.d.ts +1 -0
- package/dist/common/pipes/index.js +1 -0
- package/dist/common/pipes/index.js.map +1 -1
- package/dist/common/pipes/parse-query.pipe.d.ts +10 -0
- package/dist/common/pipes/parse-query.pipe.js +21 -0
- package/dist/common/pipes/parse-query.pipe.js.map +1 -0
- package/dist/common/types/find-by-id-params.d.ts +3 -0
- package/dist/common/types/find-by-id-params.js +3 -0
- package/dist/common/types/find-by-id-params.js.map +1 -0
- package/dist/common/types/index.d.ts +1 -0
- package/dist/common/types/index.js +18 -0
- package/dist/common/types/index.js.map +1 -0
- package/dist/core/infra/iroh.repository.d.ts +4 -2
- package/dist/core/infra/iroh.repository.js +44 -39
- package/dist/core/infra/iroh.repository.js.map +1 -1
- package/dist/core/iroh.controller.d.ts +2 -1
- package/dist/core/iroh.controller.js +9 -8
- package/dist/core/iroh.controller.js.map +1 -1
- package/dist/core/iroh.service.d.ts +3 -1
- package/dist/core/iroh.service.js +28 -43
- package/dist/core/iroh.service.js.map +1 -1
- package/dist/schematics/crud/files/ts/__name__.controller.ts +46 -3
- package/dist/schematics/crud/files/ts/infra/__name__.mapper.ts +1 -1
- package/dist/security/modules/device/device.controller.d.ts +2 -10
- package/dist/security/modules/device/device.controller.js +4 -97
- package/dist/security/modules/device/device.controller.js.map +1 -1
- package/dist/security/modules/device/device.service.d.ts +2 -19
- package/dist/security/modules/device/device.service.js +3 -154
- package/dist/security/modules/device/device.service.js.map +1 -1
- package/dist/security/modules/permission/permission.controller.d.ts +2 -10
- package/dist/security/modules/permission/permission.controller.js +4 -97
- package/dist/security/modules/permission/permission.controller.js.map +1 -1
- package/dist/security/modules/permission/permission.service.d.ts +2 -19
- package/dist/security/modules/permission/permission.service.js +3 -154
- package/dist/security/modules/permission/permission.service.js.map +1 -1
- package/dist/security/modules/role/role.controller.d.ts +2 -10
- package/dist/security/modules/role/role.controller.js +4 -97
- package/dist/security/modules/role/role.controller.js.map +1 -1
- package/dist/security/modules/role/role.service.d.ts +2 -19
- package/dist/security/modules/role/role.service.js +3 -154
- package/dist/security/modules/role/role.service.js.map +1 -1
- package/dist/security/modules/user/user.controller.d.ts +2 -10
- package/dist/security/modules/user/user.controller.js +4 -97
- package/dist/security/modules/user/user.controller.js.map +1 -1
- package/dist/security/modules/user/user.service.d.ts +3 -17
- package/dist/security/modules/user/user.service.js +7 -123
- package/dist/security/modules/user/user.service.js.map +1 -1
- package/package.json +10 -10
|
@@ -1,105 +1,12 @@
|
|
|
1
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
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
3
|
exports.IrohUserController = void 0;
|
|
16
|
-
const
|
|
17
|
-
|
|
18
|
-
const common_3 = require("@nestjs/common");
|
|
19
|
-
const common_4 = require("@nestjs/common");
|
|
20
|
-
const common_5 = require("@nestjs/common");
|
|
21
|
-
const common_6 = require("@nestjs/common");
|
|
22
|
-
const response_handler_1 = require("../../../core/app/response-handler");
|
|
23
|
-
const interceptors_1 = require("./../../../common/interceptors");
|
|
24
|
-
const filters_1 = require("./../../../common/filters");
|
|
25
|
-
const dto_1 = require("../../../common/dto");
|
|
26
|
-
let IrohUserController = class IrohUserController {
|
|
4
|
+
const iroh_controller_1 = require("../../../core/iroh.controller");
|
|
5
|
+
class IrohUserController extends iroh_controller_1.IrohController {
|
|
27
6
|
constructor(service) {
|
|
7
|
+
super(service);
|
|
28
8
|
this.service = service;
|
|
29
9
|
}
|
|
30
|
-
|
|
31
|
-
return response_handler_1.ResponseHandler.async({
|
|
32
|
-
promise: this.service.create(body),
|
|
33
|
-
mapper: this.mapView.bind(this),
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
async paginate(query) {
|
|
37
|
-
return response_handler_1.ResponseHandler.async({
|
|
38
|
-
promise: this.service.paginate(query),
|
|
39
|
-
mapper: this.mapViewList.bind(this),
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
async findById(id) {
|
|
43
|
-
const options = { logging: true };
|
|
44
|
-
return response_handler_1.ResponseHandler.async({
|
|
45
|
-
promise: this.service.findById(id, options),
|
|
46
|
-
mapper: this.mapView.bind(this),
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
async update(id, body) {
|
|
50
|
-
return response_handler_1.ResponseHandler.async({
|
|
51
|
-
promise: this.service.update(id, body),
|
|
52
|
-
mapper: this.mapView.bind(this),
|
|
53
|
-
});
|
|
54
|
-
}
|
|
55
|
-
async remove(id) {
|
|
56
|
-
return response_handler_1.ResponseHandler.async({
|
|
57
|
-
promise: this.service.remove(id),
|
|
58
|
-
mapper: this.mapView.bind(this),
|
|
59
|
-
});
|
|
60
|
-
}
|
|
61
|
-
mapView(domain) {
|
|
62
|
-
return this.service.mapper.DomainToView(domain);
|
|
63
|
-
}
|
|
64
|
-
mapViewList(domains) {
|
|
65
|
-
return domains.map((domain) => this.service.mapper.DomainToView(domain));
|
|
66
|
-
}
|
|
67
|
-
};
|
|
10
|
+
}
|
|
68
11
|
exports.IrohUserController = IrohUserController;
|
|
69
|
-
__decorate([
|
|
70
|
-
__param(0, (0, common_1.Body)()),
|
|
71
|
-
__metadata("design:type", Function),
|
|
72
|
-
__metadata("design:paramtypes", [Object]),
|
|
73
|
-
__metadata("design:returntype", Promise)
|
|
74
|
-
], IrohUserController.prototype, "create", null);
|
|
75
|
-
__decorate([
|
|
76
|
-
__param(0, (0, common_2.Query)()),
|
|
77
|
-
__metadata("design:type", Function),
|
|
78
|
-
__metadata("design:paramtypes", [dto_1.SearchDto]),
|
|
79
|
-
__metadata("design:returntype", Promise)
|
|
80
|
-
], IrohUserController.prototype, "paginate", null);
|
|
81
|
-
__decorate([
|
|
82
|
-
__param(0, (0, common_3.Param)('id', common_4.ParseUUIDPipe)),
|
|
83
|
-
__metadata("design:type", Function),
|
|
84
|
-
__metadata("design:paramtypes", [String]),
|
|
85
|
-
__metadata("design:returntype", Promise)
|
|
86
|
-
], IrohUserController.prototype, "findById", null);
|
|
87
|
-
__decorate([
|
|
88
|
-
__param(0, (0, common_3.Param)('id', common_4.ParseUUIDPipe)),
|
|
89
|
-
__param(1, (0, common_1.Body)()),
|
|
90
|
-
__metadata("design:type", Function),
|
|
91
|
-
__metadata("design:paramtypes", [String, Object]),
|
|
92
|
-
__metadata("design:returntype", Promise)
|
|
93
|
-
], IrohUserController.prototype, "update", null);
|
|
94
|
-
__decorate([
|
|
95
|
-
__param(0, (0, common_3.Param)('id', common_4.ParseUUIDPipe)),
|
|
96
|
-
__metadata("design:type", Function),
|
|
97
|
-
__metadata("design:paramtypes", [String]),
|
|
98
|
-
__metadata("design:returntype", Promise)
|
|
99
|
-
], IrohUserController.prototype, "remove", null);
|
|
100
|
-
exports.IrohUserController = IrohUserController = __decorate([
|
|
101
|
-
(0, common_6.UseFilters)(filters_1.HttpExceptionFilter),
|
|
102
|
-
(0, common_5.UseInterceptors)(interceptors_1.LoggingInterceptor),
|
|
103
|
-
__metadata("design:paramtypes", [Object])
|
|
104
|
-
], IrohUserController);
|
|
105
12
|
//# sourceMappingURL=user.controller.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.controller.js","sourceRoot":"","sources":["../../../../src/security/modules/user/user.controller.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"user.controller.js","sourceRoot":"","sources":["../../../../src/security/modules/user/user.controller.ts"],"names":[],"mappings":";;;AAAA,mEAA+D;AAS/D,MAAsB,kBAOpB,SAAQ,gCAA+B;IACvC,YAAqB,OAAsC;QACzD,KAAK,CAAC,OAAO,CAAC,CAAC;QADI,YAAO,GAAP,OAAO,CAA+B;IAE3D,CAAC;CACF;AAXD,gDAWC"}
|
|
@@ -1,29 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ErrorHandler } from './../../../common';
|
|
3
|
-
import { SearchDto } from './../../../common';
|
|
4
|
-
import { TimestampLogger } from '../../../common';
|
|
5
|
-
import { LoggerOptions } from '../../../common';
|
|
1
|
+
import { IrohService } from '../../../core/iroh.service';
|
|
6
2
|
import type { IEntityMapper } from '../../../common/interfaces';
|
|
7
3
|
import type { IGenericRepository } from '../../../common/interfaces';
|
|
8
|
-
import type { IGenericService } from '../../../common/interfaces';
|
|
9
4
|
import { GenericUserPersistence } from './infra';
|
|
10
5
|
import { GenericUserDomain } from './domain/user.domain';
|
|
11
6
|
import { GenericUserView } from './app';
|
|
12
7
|
import { IUpdatableDomain } from '../../../core/domain/generic.domain';
|
|
13
8
|
import { DtoMapper } from '../../../core/app';
|
|
14
|
-
import { Result } from '../../../core/app
|
|
15
|
-
export declare abstract class IrohUserService<M extends IEntityMapper<T, D, V>, T extends GenericUserPersistence = ReturnType<M['DomainToPersistence']>, D extends GenericUserDomain = ReturnType<M['PersistenceToDomain']> & IUpdatableDomain<ReturnType<M['PersistenceToDomain']>>, V extends GenericUserView = ReturnType<M['DomainToView']>, DTO extends DtoMapper<D, DTO> = DtoMapper<D>>
|
|
9
|
+
import { Result } from '../../../core/app';
|
|
10
|
+
export declare abstract class IrohUserService<M extends IEntityMapper<T, D, V>, T extends GenericUserPersistence = ReturnType<M['DomainToPersistence']>, D extends GenericUserDomain = ReturnType<M['PersistenceToDomain']> & IUpdatableDomain<ReturnType<M['PersistenceToDomain']>>, V extends GenericUserView = ReturnType<M['DomainToView']>, DTO extends DtoMapper<D, DTO> = DtoMapper<D>> extends IrohService<M, T, D, V, DTO> {
|
|
16
11
|
readonly repository: IGenericRepository<T, D, V>;
|
|
17
|
-
readonly logger: TimestampLogger;
|
|
18
|
-
readonly handler: ErrorHandler;
|
|
19
|
-
readonly mapper: IEntityMapper<T, D, V>;
|
|
20
12
|
constructor(repository: IGenericRepository<T, D, V>);
|
|
21
13
|
create(dto: DTO): Promise<Result<D>>;
|
|
22
|
-
paginate(query: SearchDto): Promise<Result<D[]>>;
|
|
23
|
-
findAll(): Promise<Result<D[]>>;
|
|
24
|
-
findById(id: string, options?: LoggerOptions): Promise<Result<D>>;
|
|
25
|
-
findOne(query: FindOneOptions<T>, options?: LoggerOptions): Promise<Result<D>>;
|
|
26
14
|
update(id: string, updateDto: Partial<DTO>): Promise<Result<D>>;
|
|
27
|
-
remove(id: string): Promise<Result<D>>;
|
|
28
|
-
getRepository(): IGenericRepository<T, D, V>;
|
|
29
15
|
}
|
|
@@ -2,15 +2,12 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.IrohUserService = void 0;
|
|
4
4
|
const common_1 = require("@nestjs/common");
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
class IrohUserService {
|
|
5
|
+
const iroh_service_1 = require("../../../core/iroh.service");
|
|
6
|
+
const app_1 = require("../../../core/app");
|
|
7
|
+
class IrohUserService extends iroh_service_1.IrohService {
|
|
9
8
|
constructor(repository) {
|
|
9
|
+
super(repository);
|
|
10
10
|
this.repository = repository;
|
|
11
|
-
this.logger = new common_3.TimestampLogger(this.constructor.name);
|
|
12
|
-
this.handler = common_2.ErrorHandler.getInstance();
|
|
13
|
-
this.mapper = this.repository.mapper;
|
|
14
11
|
}
|
|
15
12
|
async create(dto) {
|
|
16
13
|
try {
|
|
@@ -20,99 +17,7 @@ class IrohUserService {
|
|
|
20
17
|
const createdDomain = await this.repository.create(newDomain);
|
|
21
18
|
const { id } = createdDomain;
|
|
22
19
|
this.logger.log(`${id} created successfully`);
|
|
23
|
-
return
|
|
24
|
-
}
|
|
25
|
-
catch (error) {
|
|
26
|
-
this.handler.catch(error);
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
async paginate(query) {
|
|
30
|
-
try {
|
|
31
|
-
this.logger.start();
|
|
32
|
-
const domains = await this.repository.paginate(query);
|
|
33
|
-
const count = domains.length;
|
|
34
|
-
switch (count) {
|
|
35
|
-
case 0:
|
|
36
|
-
this.logger.log(`No entities found`);
|
|
37
|
-
return result_1.Result.Ok([]);
|
|
38
|
-
case 1: {
|
|
39
|
-
const message = `Successfully retrieved one entity with pagination`;
|
|
40
|
-
this.logger.log(message);
|
|
41
|
-
break;
|
|
42
|
-
}
|
|
43
|
-
default: {
|
|
44
|
-
const message = `Successfully retrieved ${count} entities with pagination`;
|
|
45
|
-
this.logger.log(message);
|
|
46
|
-
break;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
return result_1.Result.Ok(domains);
|
|
50
|
-
}
|
|
51
|
-
catch (error) {
|
|
52
|
-
this.handler.catch(error);
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
async findAll() {
|
|
56
|
-
try {
|
|
57
|
-
const domains = await this.repository.findAll();
|
|
58
|
-
const count = domains.length;
|
|
59
|
-
switch (count) {
|
|
60
|
-
case 0:
|
|
61
|
-
this.logger.log(`No entities found`);
|
|
62
|
-
return result_1.Result.Ok([]);
|
|
63
|
-
case 1: {
|
|
64
|
-
const message = `Successfully retrieved one entity with pagination`;
|
|
65
|
-
this.logger.log(message);
|
|
66
|
-
break;
|
|
67
|
-
}
|
|
68
|
-
default: {
|
|
69
|
-
const message = `Successfully retrieved ${count} entities with pagination`;
|
|
70
|
-
this.logger.log(message);
|
|
71
|
-
break;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
return result_1.Result.Ok(domains);
|
|
75
|
-
}
|
|
76
|
-
catch (error) {
|
|
77
|
-
this.handler.catch(error);
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
async findById(id, options = { logging: false }) {
|
|
81
|
-
try {
|
|
82
|
-
this.logger.start();
|
|
83
|
-
const domain = await this.repository.findById(id, options);
|
|
84
|
-
if (!domain) {
|
|
85
|
-
this.logger.log(`${id} not found`);
|
|
86
|
-
const { name } = this.repository.getMetadata();
|
|
87
|
-
const message = `${name} with id ${id} not found`;
|
|
88
|
-
return result_1.Result.Fail(new common_1.NotFoundException(message));
|
|
89
|
-
}
|
|
90
|
-
if (options.logging) {
|
|
91
|
-
const { id } = domain;
|
|
92
|
-
const message = `${id} found successfully`;
|
|
93
|
-
this.logger.log(message);
|
|
94
|
-
}
|
|
95
|
-
return result_1.Result.Ok(domain);
|
|
96
|
-
}
|
|
97
|
-
catch (error) {
|
|
98
|
-
this.handler.catch(error);
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
async findOne(query, options = { logging: false }) {
|
|
102
|
-
try {
|
|
103
|
-
this.logger.start();
|
|
104
|
-
const domain = await this.repository.findOne(query, options);
|
|
105
|
-
if (!domain) {
|
|
106
|
-
this.logger.log(`Entity not found by query`);
|
|
107
|
-
const { name } = this.repository.getMetadata();
|
|
108
|
-
return result_1.Result.Fail(new common_1.NotFoundException(`${name} not found`));
|
|
109
|
-
}
|
|
110
|
-
if (options.logging) {
|
|
111
|
-
const { id } = domain;
|
|
112
|
-
const message = `${id} found successfully`;
|
|
113
|
-
this.logger.log(message);
|
|
114
|
-
}
|
|
115
|
-
return result_1.Result.Ok(domain);
|
|
20
|
+
return app_1.Result.Ok(createdDomain);
|
|
116
21
|
}
|
|
117
22
|
catch (error) {
|
|
118
23
|
this.handler.catch(error);
|
|
@@ -126,7 +31,7 @@ class IrohUserService {
|
|
|
126
31
|
this.logger.log(`${id} not found`);
|
|
127
32
|
const { name } = this.repository.getMetadata();
|
|
128
33
|
const message = `${name} with id ${id} not found`;
|
|
129
|
-
return
|
|
34
|
+
return app_1.Result.Fail(new common_1.NotFoundException(message));
|
|
130
35
|
}
|
|
131
36
|
const domain = found;
|
|
132
37
|
const data = updateDto;
|
|
@@ -136,33 +41,12 @@ class IrohUserService {
|
|
|
136
41
|
}
|
|
137
42
|
const updatedDomain = await this.repository.save(domain);
|
|
138
43
|
this.logger.log(`${id} updated successfully`);
|
|
139
|
-
return
|
|
44
|
+
return app_1.Result.Ok(updatedDomain);
|
|
140
45
|
}
|
|
141
46
|
catch (error) {
|
|
142
47
|
this.handler.catch(error);
|
|
143
48
|
}
|
|
144
49
|
}
|
|
145
|
-
async remove(id) {
|
|
146
|
-
try {
|
|
147
|
-
this.logger.start();
|
|
148
|
-
const domain = await this.repository.findById(id);
|
|
149
|
-
if (!domain) {
|
|
150
|
-
this.logger.log(`${id} not found`);
|
|
151
|
-
const { name } = this.repository.getMetadata();
|
|
152
|
-
const message = `${name} with id ${id} not found`;
|
|
153
|
-
return result_1.Result.Fail(new common_1.NotFoundException(message));
|
|
154
|
-
}
|
|
155
|
-
await this.repository.remove(id);
|
|
156
|
-
this.logger.log(`${id} removed successfully`);
|
|
157
|
-
return result_1.Result.Ok(domain);
|
|
158
|
-
}
|
|
159
|
-
catch (error) {
|
|
160
|
-
this.handler.catch(error);
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
getRepository() {
|
|
164
|
-
return this.repository;
|
|
165
|
-
}
|
|
166
50
|
}
|
|
167
51
|
exports.IrohUserService = IrohUserService;
|
|
168
52
|
//# sourceMappingURL=user.service.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.service.js","sourceRoot":"","sources":["../../../../src/security/modules/user/user.service.ts"],"names":[],"mappings":";;;AAAA,2CAAmD;
|
|
1
|
+
{"version":3,"file":"user.service.js","sourceRoot":"","sources":["../../../../src/security/modules/user/user.service.ts"],"names":[],"mappings":";;;AAAA,2CAAmD;AACnD,6DAAyD;AASzD,2CAA2C;AAG3C,MAAsB,eAOpB,SAAQ,0BAA4B;IACpC,YAAqB,UAAuC;QAC1D,KAAK,CAAC,UAAU,CAAC,CAAC;QADC,eAAU,GAAV,UAAU,CAA6B;IAE5D,CAAC;IAEM,KAAK,CAAC,MAAM,CAAC,GAAQ;QAC1B,IAAI,CAAC;YACH,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC;YACpB,MAAM,SAAS,GAAG,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;YACpC,SAAS,CAAC,YAAY,EAAE,CAAC;YACzB,MAAM,aAAa,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;YAC9D,MAAM,EAAE,EAAE,EAAE,GAAG,aAAa,CAAC;YAC7B,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,EAAE,uBAAuB,CAAC,CAAC;YAC9C,OAAO,YAAM,CAAC,EAAE,CAAC,aAAa,CAAC,CAAC;QAClC,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,KAAiB,CAAC,CAAC;QACxC,CAAC;IACH,CAAC;IAEM,KAAK,CAAC,MAAM,CAAC,EAAU,EAAE,SAAuB;QACrD,IAAI,CAAC;YACH,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC;YACpB,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;YACjD,IAAI,CAAC,KAAK,EAAE,CAAC;gBACX,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,EAAE,YAAY,CAAC,CAAC;gBACnC,MAAM,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC,UAAU,CAAC,WAAW,EAAE,CAAC;gBAC/C,MAAM,OAAO,GAAG,GAAG,IAAI,YAAY,EAAE,YAAY,CAAC;gBAClD,OAAO,YAAM,CAAC,IAAI,CAAC,IAAI,0BAAiB,CAAC,OAAO,CAAC,CAAC,CAAC;YACrD,CAAC;YACD,MAAM,MAAM,GAAG,KAA2C,CAAC;YAC3D,MAAM,IAAI,GAAG,SAA+C,CAAC;YAC7D,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;YACpB,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;gBAClB,MAAM,CAAC,YAAY,EAAE,CAAC;YACxB,CAAC;YACD,MAAM,aAAa,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,MAAsB,CAAC,CAAC;YACzE,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,EAAE,uBAAuB,CAAC,CAAC;YAC9C,OAAO,YAAM,CAAC,EAAE,CAAC,aAAa,CAAC,CAAC;QAClC,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,KAAiB,CAAC,CAAC;QACxC,CAAC;IACH,CAAC;CACF;AAjDD,0CAiDC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rafikidota/iroh",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.26.0",
|
|
4
4
|
"description": "Sometimes, the best way to solve your own problems is to help someone else.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -27,20 +27,20 @@
|
|
|
27
27
|
"prepublishOnly": "npm run lint && npm run build"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@angular-devkit/core": "19.2.
|
|
31
|
-
"@angular-devkit/schematics": "19.2.
|
|
30
|
+
"@angular-devkit/core": "19.2.10",
|
|
31
|
+
"@angular-devkit/schematics": "19.2.10",
|
|
32
32
|
"@nestjs/axios": "4.0.0",
|
|
33
33
|
"@nestjs/common": "11.1.0",
|
|
34
34
|
"@nestjs/config": "4.0.2",
|
|
35
35
|
"@nestjs/core": "11.1.0",
|
|
36
36
|
"@nestjs/jwt": "11.0.0",
|
|
37
37
|
"@nestjs/passport": "11.0.5",
|
|
38
|
-
"@nestjs/swagger": "11.1.
|
|
38
|
+
"@nestjs/swagger": "11.1.6",
|
|
39
39
|
"@nestjs/typeorm": "11.0.0",
|
|
40
40
|
"@rafikidota/serpens": "1.0.0",
|
|
41
|
-
"@swc/core": "1.11.
|
|
41
|
+
"@swc/core": "1.11.24",
|
|
42
42
|
"@swc/helpers": "0.5.17",
|
|
43
|
-
"axios": "1.
|
|
43
|
+
"axios": "1.9.0",
|
|
44
44
|
"bcrypt": "5.1.1",
|
|
45
45
|
"chalk": "4.1.2",
|
|
46
46
|
"class-transformer": "0.5.1",
|
|
@@ -58,11 +58,11 @@
|
|
|
58
58
|
"@eslint/js": "9.25.1",
|
|
59
59
|
"@types/bcrypt": "5.0.2",
|
|
60
60
|
"@types/express": "5.0.1",
|
|
61
|
-
"@types/node": "22.
|
|
61
|
+
"@types/node": "22.15.3",
|
|
62
62
|
"@types/passport-jwt": "4.0.1",
|
|
63
63
|
"@types/uuid": "10.0.0",
|
|
64
|
-
"@typescript-eslint/eslint-plugin": "8.31.
|
|
65
|
-
"@typescript-eslint/parser": "8.31.
|
|
64
|
+
"@typescript-eslint/eslint-plugin": "8.31.1",
|
|
65
|
+
"@typescript-eslint/parser": "8.31.1",
|
|
66
66
|
"eslint": "9.25.1",
|
|
67
67
|
"eslint-config-prettier": "10.1.2",
|
|
68
68
|
"eslint-plugin-import": "2.31.0",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"prettier": "3.5.3",
|
|
74
74
|
"rimraf": "6.0.1",
|
|
75
75
|
"typescript": "5.8.3",
|
|
76
|
-
"typescript-eslint": "8.31.
|
|
76
|
+
"typescript-eslint": "8.31.1"
|
|
77
77
|
},
|
|
78
78
|
"peerDependencies": {},
|
|
79
79
|
"schematics": "./collection.json",
|