@rafikidota/iroh 0.26.0 → 0.27.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/common/dto/find-by-id.dto.d.ts +5 -0
- package/dist/common/dto/find-by-id.dto.js +46 -0
- package/dist/common/dto/find-by-id.dto.js.map +1 -0
- package/dist/common/dto/index.d.ts +1 -0
- package/dist/common/dto/index.js +1 -0
- package/dist/common/dto/index.js.map +1 -1
- package/dist/common/loggers/notification/notification.type.d.ts +3 -3
- package/dist/common/loggers/notification/notification.type.enum.d.ts +2 -2
- package/dist/common/loggers/notification/notification.type.enum.js +7 -7
- package/dist/common/loggers/notification/notification.type.enum.js.map +1 -1
- package/dist/common/loggers/notification/notifier.d.ts +2 -2
- package/dist/common/loggers/notification/notifier.js +7 -7
- package/dist/common/loggers/notification/notifier.js.map +1 -1
- package/dist/core/infra/iroh.repository.d.ts +4 -1
- package/dist/core/infra/iroh.repository.js +46 -25
- package/dist/core/infra/iroh.repository.js.map +1 -1
- package/dist/core/iroh.service.js +4 -4
- package/dist/core/iroh.service.js.map +1 -1
- package/package.json +5 -5
|
@@ -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.FindByIdDto = void 0;
|
|
13
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const class_validator_2 = require("class-validator");
|
|
16
|
+
const class_validator_3 = require("class-validator");
|
|
17
|
+
const class_validator_4 = require("class-validator");
|
|
18
|
+
const class_validator_5 = require("class-validator");
|
|
19
|
+
const class_validator_6 = require("class-validator");
|
|
20
|
+
const uuid_1 = require("uuid");
|
|
21
|
+
class FindByIdDto {
|
|
22
|
+
}
|
|
23
|
+
exports.FindByIdDto = FindByIdDto;
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, swagger_1.ApiProperty)({
|
|
26
|
+
description: 'Optional parameters for dynamic queries',
|
|
27
|
+
required: false,
|
|
28
|
+
example: (0, uuid_1.v4)(),
|
|
29
|
+
}),
|
|
30
|
+
(0, class_validator_5.IsString)(),
|
|
31
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
32
|
+
(0, class_validator_6.IsUUID)(),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], FindByIdDto.prototype, "id", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, swagger_1.ApiProperty)({
|
|
37
|
+
description: 'Optional parameters for dynamic queries',
|
|
38
|
+
required: false,
|
|
39
|
+
}),
|
|
40
|
+
(0, class_validator_4.IsOptional)(),
|
|
41
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
42
|
+
(0, class_validator_3.IsObject)(),
|
|
43
|
+
(0, class_validator_2.IsNotEmptyObject)(),
|
|
44
|
+
__metadata("design:type", Object)
|
|
45
|
+
], FindByIdDto.prototype, "options", void 0);
|
|
46
|
+
//# sourceMappingURL=find-by-id.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"find-by-id.dto.js","sourceRoot":"","sources":["../../../src/common/dto/find-by-id.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA8C;AAC9C,qDAA6C;AAC7C,qDAAmD;AACnD,qDAA2C;AAC3C,qDAA6C;AAC7C,qDAA2C;AAC3C,qDAAyC;AACzC,+BAAkC;AAGlC,MAAa,WAAW;CAoBvB;AApBD,kCAoBC;AAXC;IARC,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,yCAAyC;QACtD,QAAQ,EAAE,KAAK;QACf,OAAO,EAAE,IAAA,SAAI,GAAE;KAChB,CAAC;IACD,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;uCACE;AAUX;IARC,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,yCAAyC;QACtD,QAAQ,EAAE,KAAK;KAChB,CAAC;IACD,IAAA,4BAAU,GAAE;IACZ,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,kCAAgB,GAAE;;4CACI"}
|
package/dist/common/dto/index.js
CHANGED
|
@@ -15,6 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./entity-id.dto"), exports);
|
|
18
|
+
__exportStar(require("./find-by-id.dto"), exports);
|
|
18
19
|
__exportStar(require("./pagination.dto"), exports);
|
|
19
20
|
__exportStar(require("./parsed-query-option.dto"), exports);
|
|
20
21
|
__exportStar(require("./parsed-search.dto"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAgC;AAChC,mDAAiC;AACjC,4DAA0C;AAC1C,sDAAoC;AACpC,qDAAmC;AACnC,+CAA6B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAgC;AAChC,mDAAiC;AACjC,mDAAiC;AACjC,4DAA0C;AAC1C,sDAAoC;AACpC,qDAAmC;AACnC,+CAA6B"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export type
|
|
1
|
+
import { NotificationTypeEnum } from './notification.type.enum';
|
|
2
|
+
export type Notification = {
|
|
3
3
|
id?: string;
|
|
4
4
|
count?: number;
|
|
5
5
|
found?: boolean;
|
|
6
6
|
message?: string;
|
|
7
|
-
type
|
|
7
|
+
type?: NotificationTypeEnum;
|
|
8
8
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export declare enum
|
|
1
|
+
export declare enum NotificationTypeEnum {
|
|
2
2
|
ID = "id",
|
|
3
3
|
QUERY = "query",
|
|
4
4
|
PAGINATION = "pagination"
|
|
5
5
|
}
|
|
6
|
-
export type NotifcationType =
|
|
6
|
+
export type NotifcationType = NotificationTypeEnum.ID | NotificationTypeEnum.QUERY | NotificationTypeEnum.PAGINATION;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
var
|
|
5
|
-
(function (
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
})(
|
|
3
|
+
exports.NotificationTypeEnum = void 0;
|
|
4
|
+
var NotificationTypeEnum;
|
|
5
|
+
(function (NotificationTypeEnum) {
|
|
6
|
+
NotificationTypeEnum["ID"] = "id";
|
|
7
|
+
NotificationTypeEnum["QUERY"] = "query";
|
|
8
|
+
NotificationTypeEnum["PAGINATION"] = "pagination";
|
|
9
|
+
})(NotificationTypeEnum || (exports.NotificationTypeEnum = NotificationTypeEnum = {}));
|
|
10
10
|
//# sourceMappingURL=notification.type.enum.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notification.type.enum.js","sourceRoot":"","sources":["../../../../src/common/loggers/notification/notification.type.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,
|
|
1
|
+
{"version":3,"file":"notification.type.enum.js","sourceRoot":"","sources":["../../../../src/common/loggers/notification/notification.type.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,oBAIX;AAJD,WAAY,oBAAoB;IAC9B,iCAAS,CAAA;IACT,uCAAe,CAAA;IACf,iDAAyB,CAAA;AAC3B,CAAC,EAJW,oBAAoB,oCAApB,oBAAoB,QAI/B"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { TimestampLogger } from '../providers';
|
|
2
|
-
import {
|
|
2
|
+
import { Notification } from './notification.type';
|
|
3
3
|
export declare class NotifierLogger {
|
|
4
4
|
private readonly logger;
|
|
5
5
|
private notification;
|
|
6
6
|
constructor(logger: TimestampLogger);
|
|
7
|
-
notify(notification:
|
|
7
|
+
notify(notification: Notification): void;
|
|
8
8
|
private notifyByPagination;
|
|
9
9
|
private notifyById;
|
|
10
10
|
private notifyByQuery;
|
|
@@ -10,13 +10,13 @@ class NotifierLogger {
|
|
|
10
10
|
this.notification = notification;
|
|
11
11
|
const { type } = notification;
|
|
12
12
|
switch (type) {
|
|
13
|
-
case notification_type_enum_1.
|
|
13
|
+
case notification_type_enum_1.NotificationTypeEnum.PAGINATION:
|
|
14
14
|
this.notifyByPagination();
|
|
15
15
|
break;
|
|
16
|
-
case notification_type_enum_1.
|
|
16
|
+
case notification_type_enum_1.NotificationTypeEnum.ID:
|
|
17
17
|
this.notifyById();
|
|
18
18
|
break;
|
|
19
|
-
case notification_type_enum_1.
|
|
19
|
+
case notification_type_enum_1.NotificationTypeEnum.QUERY:
|
|
20
20
|
this.notifyByQuery();
|
|
21
21
|
break;
|
|
22
22
|
default:
|
|
@@ -41,16 +41,16 @@ class NotifierLogger {
|
|
|
41
41
|
notifyById() {
|
|
42
42
|
const { id, found } = this.notification;
|
|
43
43
|
if (found) {
|
|
44
|
-
this.logger.log(`${id} found successfully`);
|
|
44
|
+
return this.logger.log(`${id} found successfully`);
|
|
45
45
|
}
|
|
46
|
-
this.logger.log(`${id} not found`);
|
|
46
|
+
return this.logger.log(`${id} not found`);
|
|
47
47
|
}
|
|
48
48
|
notifyByQuery() {
|
|
49
49
|
const { id, found } = this.notification;
|
|
50
50
|
if (!found) {
|
|
51
|
-
this.logger.log(`Entity not found by query`);
|
|
51
|
+
return this.logger.log(`Entity not found by query`);
|
|
52
52
|
}
|
|
53
|
-
this.logger.log(`${id} found successfully by query`);
|
|
53
|
+
return this.logger.log(`${id} found successfully by query`);
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
exports.NotifierLogger = NotifierLogger;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notifier.js","sourceRoot":"","sources":["../../../../src/common/loggers/notification/notifier.ts"],"names":[],"mappings":";;;AAEA,
|
|
1
|
+
{"version":3,"file":"notifier.js","sourceRoot":"","sources":["../../../../src/common/loggers/notification/notifier.ts"],"names":[],"mappings":";;;AAEA,qEAAgE;AAEhE,MAAa,cAAc;IAIzB,YAAY,MAAuB;QACjC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAEM,MAAM,CAAC,YAA0B;QACtC,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,MAAM,EAAE,IAAI,EAAE,GAAG,YAAY,CAAC;QAC9B,QAAQ,IAAI,EAAE,CAAC;YACb,KAAK,6CAAoB,CAAC,UAAU;gBAClC,IAAI,CAAC,kBAAkB,EAAE,CAAC;gBAC1B,MAAM;YACR,KAAK,6CAAoB,CAAC,EAAE;gBAC1B,IAAI,CAAC,UAAU,EAAE,CAAC;gBAClB,MAAM;YACR,KAAK,6CAAoB,CAAC,KAAK;gBAC7B,IAAI,CAAC,aAAa,EAAE,CAAC;gBACrB,MAAM;YACR;gBACE,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,8BAA8B,IAAc,EAAE,CAAC,CAAC;gBAChE,MAAM;QACV,CAAC;IACH,CAAC;IAEO,kBAAkB;QACxB,MAAM,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC,YAAY,CAAC;QACpC,QAAQ,KAAK,EAAE,CAAC;YACd,KAAK,CAAC;gBACJ,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,mBAAmB,CAAC,CAAC;gBACrC,MAAM;YACR,KAAK,CAAC;gBACJ,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,mCAAmC,CAAC,CAAC;gBACrD,MAAM;YACR;gBACE,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,0BAA0B,KAAK,WAAW,CAAC,CAAC;gBAC5D,MAAM;QACV,CAAC;IACH,CAAC;IAEO,UAAU;QAChB,MAAM,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC,YAAY,CAAC;QACxC,IAAI,KAAK,EAAE,CAAC;YACV,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,EAAE,qBAAqB,CAAC,CAAC;QACrD,CAAC;QACD,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,EAAE,YAAY,CAAC,CAAC;IAC5C,CAAC;IAEO,aAAa;QACnB,MAAM,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC,YAAY,CAAC;QACxC,IAAI,CAAC,KAAK,EAAE,CAAC;YACX,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,2BAA2B,CAAC,CAAC;QACtD,CAAC;QACD,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,EAAE,8BAA8B,CAAC,CAAC;IAC9D,CAAC;CACF;AAzDD,wCAyDC"}
|
|
@@ -11,7 +11,7 @@ import { GenericView } from '../app';
|
|
|
11
11
|
import { IEntityMapper } from '../../common';
|
|
12
12
|
import { IGenericRepository } from '../../common';
|
|
13
13
|
import { ParsedSearchDto } from '../../common';
|
|
14
|
-
import { QueryBuilder } from '../../common';
|
|
14
|
+
import { QueryBuilder } from '../../common/database/';
|
|
15
15
|
import { FindByIdParam } from '../../common/types/find-by-id-params';
|
|
16
16
|
export declare abstract class IrohRepository<M extends IEntityMapper<T, D, V>, T extends GenericPersistence = ReturnType<M['DomainToPersistence']>, D extends GenericDomain = ReturnType<M['PersistenceToDomain']>, V extends GenericView = ReturnType<M['DomainToView']>> implements IGenericRepository<T, D, V> {
|
|
17
17
|
repository: Repository<T>;
|
|
@@ -20,6 +20,8 @@ export declare abstract class IrohRepository<M extends IEntityMapper<T, D, V>, T
|
|
|
20
20
|
mapper: IEntityMapper<T, D, V>;
|
|
21
21
|
builder: QueryBuilder<T>;
|
|
22
22
|
private alias;
|
|
23
|
+
private persistence;
|
|
24
|
+
private persistences;
|
|
23
25
|
constructor(repository: Repository<T>);
|
|
24
26
|
save(domain: D): Promise<D>;
|
|
25
27
|
saveList(domains: D[]): Promise<D[]>;
|
|
@@ -36,4 +38,5 @@ export declare abstract class IrohRepository<M extends IEntityMapper<T, D, V>, T
|
|
|
36
38
|
private prepare;
|
|
37
39
|
setTransactionalRepository(entityManager: EntityManager): void;
|
|
38
40
|
private notify;
|
|
41
|
+
private clean;
|
|
39
42
|
}
|
|
@@ -16,7 +16,8 @@ exports.IrohRepository = void 0;
|
|
|
16
16
|
const typeorm_1 = require("@nestjs/typeorm");
|
|
17
17
|
const typeorm_2 = require("typeorm");
|
|
18
18
|
const common_1 = require("../../common");
|
|
19
|
-
const
|
|
19
|
+
const database_1 = require("../../common/database/");
|
|
20
|
+
const query_builder_1 = require("../../common/database/query-builder");
|
|
20
21
|
const notification_1 = require("../../common/loggers/notification");
|
|
21
22
|
const notification_2 = require("../../common/loggers/notification");
|
|
22
23
|
let IrohRepository = class IrohRepository {
|
|
@@ -56,12 +57,13 @@ let IrohRepository = class IrohRepository {
|
|
|
56
57
|
}
|
|
57
58
|
async paginate(query = {}) {
|
|
58
59
|
this.logger.start();
|
|
59
|
-
|
|
60
|
-
const domains = persistences.map((p) => this.mapper.PersistenceToDomain(p));
|
|
60
|
+
this.persistences = await this.find(query);
|
|
61
|
+
const domains = this.persistences.map((p) => this.mapper.PersistenceToDomain(p));
|
|
61
62
|
this.notify({
|
|
62
|
-
count: persistences.length,
|
|
63
|
-
type: notification_2.
|
|
63
|
+
count: this.persistences.length,
|
|
64
|
+
type: notification_2.NotificationTypeEnum.PAGINATION,
|
|
64
65
|
});
|
|
66
|
+
this.clean();
|
|
65
67
|
return domains;
|
|
66
68
|
}
|
|
67
69
|
async find(query = {}) {
|
|
@@ -87,47 +89,61 @@ let IrohRepository = class IrohRepository {
|
|
|
87
89
|
}
|
|
88
90
|
async findAll() {
|
|
89
91
|
this.logger.start();
|
|
90
|
-
|
|
92
|
+
this.persistences = await this.repository.find();
|
|
91
93
|
this.notify({
|
|
92
|
-
count: persistences.length,
|
|
93
|
-
type: notification_2.
|
|
94
|
+
count: this.persistences.length,
|
|
95
|
+
type: notification_2.NotificationTypeEnum.PAGINATION,
|
|
94
96
|
});
|
|
95
|
-
|
|
97
|
+
const domains = this.persistences.map((p) => this.mapper.PersistenceToDomain(p));
|
|
98
|
+
this.clean();
|
|
99
|
+
return domains;
|
|
96
100
|
}
|
|
97
101
|
async findById(id, params = { logging: false }) {
|
|
98
102
|
this.logger.start();
|
|
103
|
+
this.prepare();
|
|
104
|
+
const filter = { id: (0, query_builder_1.Equal)(id) };
|
|
105
|
+
const options = {
|
|
106
|
+
where: filter,
|
|
107
|
+
};
|
|
99
108
|
if (params.options) {
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
return this.mapper.PersistenceToDomain(data);
|
|
109
|
+
const { select, relations } = params.options;
|
|
110
|
+
options.select = select;
|
|
111
|
+
options.relations = relations;
|
|
104
112
|
}
|
|
105
|
-
|
|
106
|
-
const
|
|
107
|
-
|
|
108
|
-
|
|
113
|
+
this.builder.addOptions(options);
|
|
114
|
+
const [first] = await this.builder.getMany();
|
|
115
|
+
this.persistence = first;
|
|
116
|
+
if (!this.persistence) {
|
|
117
|
+
this.notify({
|
|
118
|
+
found: false,
|
|
119
|
+
type: notification_2.NotificationTypeEnum.ID,
|
|
120
|
+
id,
|
|
121
|
+
});
|
|
122
|
+
this.clean();
|
|
109
123
|
return null;
|
|
110
124
|
}
|
|
111
125
|
if (params.logging) {
|
|
112
126
|
this.notify({
|
|
113
|
-
found:
|
|
114
|
-
type: notification_2.
|
|
115
|
-
id
|
|
127
|
+
found: true,
|
|
128
|
+
type: notification_2.NotificationTypeEnum.ID,
|
|
129
|
+
id,
|
|
116
130
|
});
|
|
117
131
|
}
|
|
118
|
-
|
|
132
|
+
const domain = this.mapper.PersistenceToDomain(this.persistence);
|
|
133
|
+
this.clean();
|
|
134
|
+
return domain;
|
|
119
135
|
}
|
|
120
136
|
async findOne(query, options = { logging: false }) {
|
|
121
137
|
this.logger.start();
|
|
122
138
|
const persistence = await this.repository.findOne(query);
|
|
123
139
|
if (!persistence) {
|
|
124
|
-
this.notify({ found: false, type: notification_2.
|
|
140
|
+
this.notify({ found: false, type: notification_2.NotificationTypeEnum.QUERY });
|
|
125
141
|
return null;
|
|
126
142
|
}
|
|
127
143
|
if (options.logging) {
|
|
128
144
|
this.notify({
|
|
129
|
-
found:
|
|
130
|
-
type: notification_2.
|
|
145
|
+
found: true,
|
|
146
|
+
type: notification_2.NotificationTypeEnum.QUERY,
|
|
131
147
|
id: persistence.id,
|
|
132
148
|
});
|
|
133
149
|
}
|
|
@@ -167,7 +183,7 @@ let IrohRepository = class IrohRepository {
|
|
|
167
183
|
if (this.repository && this.Entity) {
|
|
168
184
|
const dataSource = this.repository.manager.connection;
|
|
169
185
|
const qb = dataSource.createQueryBuilder().from(this.Entity, this.alias);
|
|
170
|
-
this.builder = new
|
|
186
|
+
this.builder = new database_1.QueryBuilder(qb);
|
|
171
187
|
}
|
|
172
188
|
}
|
|
173
189
|
setTransactionalRepository(entityManager) {
|
|
@@ -178,6 +194,11 @@ let IrohRepository = class IrohRepository {
|
|
|
178
194
|
const notifier = new notification_1.NotifierLogger(this.logger);
|
|
179
195
|
notifier.notify(notification);
|
|
180
196
|
}
|
|
197
|
+
clean() {
|
|
198
|
+
this.persistence = null;
|
|
199
|
+
this.persistences = [];
|
|
200
|
+
this.builder = null;
|
|
201
|
+
}
|
|
181
202
|
};
|
|
182
203
|
exports.IrohRepository = IrohRepository;
|
|
183
204
|
exports.IrohRepository = IrohRepository = __decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"iroh.repository.js","sourceRoot":"","sources":["../../../src/core/infra/iroh.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,6CAAmD;AAInD,qCAAqC;AAErC,yCAA+C;AAS/C,
|
|
1
|
+
{"version":3,"file":"iroh.repository.js","sourceRoot":"","sources":["../../../src/core/infra/iroh.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,6CAAmD;AAInD,qCAAqC;AAErC,yCAA+C;AAS/C,qDAAsD;AAGtD,uEAA4D;AAE5D,oEAAmE;AAEnE,oEAAyE;AAEzE,IAAsB,cAAc,GAApC,MAAsB,cAAc;IAelC,YAIE,UAAgC;QAAzB,eAAU,GAAV,UAAU,CAAe;QAR1B,UAAK,GAAW,OAAO,CAAC;QAU9B,IAAI,CAAC,MAAM,GAAG,IAAI,wBAAe,CAAC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;IAC3D,CAAC;IAEM,KAAK,CAAC,IAAI,CAAC,MAAS;QACzB,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC;QACpB,MAAM,WAAW,GAAG,IAAI,CAAC,MAAM,CAAC,mBAAmB,CAAC,MAAM,CAAC,CAAC;QAC5D,MAAM,gBAAgB,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QACjE,MAAM,WAAW,GAAG,IAAI,CAAC,MAAM,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,CAAC;QACtE,MAAM,EAAE,EAAE,EAAE,GAAG,WAAW,CAAC;QAC3B,IAAI,CAAC,MAA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AAa,CAAC;IACvB,CAAC,CAAC,CAAA;qCACiB,oBAAU;GAnBX,cAAc,CAqOnC"}
|
|
@@ -33,7 +33,7 @@ class IrohService {
|
|
|
33
33
|
const domains = await this.repository.paginate(query);
|
|
34
34
|
this.notify({
|
|
35
35
|
count: domains.length,
|
|
36
|
-
type: notification_type_enum_1.
|
|
36
|
+
type: notification_type_enum_1.NotificationTypeEnum.PAGINATION,
|
|
37
37
|
});
|
|
38
38
|
return result_1.Result.Ok(domains);
|
|
39
39
|
}
|
|
@@ -46,7 +46,7 @@ class IrohService {
|
|
|
46
46
|
const domains = await this.repository.findAll();
|
|
47
47
|
this.notify({
|
|
48
48
|
count: domains.length,
|
|
49
|
-
type: notification_type_enum_1.
|
|
49
|
+
type: notification_type_enum_1.NotificationTypeEnum.PAGINATION,
|
|
50
50
|
});
|
|
51
51
|
return result_1.Result.Ok(domains);
|
|
52
52
|
}
|
|
@@ -67,7 +67,7 @@ class IrohService {
|
|
|
67
67
|
this.notify({
|
|
68
68
|
id: domain.id,
|
|
69
69
|
found: true,
|
|
70
|
-
type: notification_type_enum_1.
|
|
70
|
+
type: notification_type_enum_1.NotificationTypeEnum.ID,
|
|
71
71
|
});
|
|
72
72
|
}
|
|
73
73
|
return result_1.Result.Ok(domain);
|
|
@@ -88,7 +88,7 @@ class IrohService {
|
|
|
88
88
|
if (options.logging) {
|
|
89
89
|
this.notify({
|
|
90
90
|
found: true,
|
|
91
|
-
type: notification_type_enum_1.
|
|
91
|
+
type: notification_type_enum_1.NotificationTypeEnum.QUERY,
|
|
92
92
|
});
|
|
93
93
|
}
|
|
94
94
|
return result_1.Result.Ok(domain);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"iroh.service.js","sourceRoot":"","sources":["../../src/core/iroh.service.ts"],"names":[],"mappings":";;;AAAA,2CAAmD;AAGnD,sCAAyC;AACzC,sCAA4C;AAY5C,yCAAsC;AAEtC,sEAAyE;AAEzE,
|
|
1
|
+
{"version":3,"file":"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AC,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,YAAY,CAAC,CAAC;gBACpC,MAAM,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC,UAAU,CAAC,WAAW,EAAE,CAAC;gBAC/C,OAAO,eAAM,CAAC,IAAI,CAChB,IAAI,0BAAiB,CAAC,GAAG,IAAI,YAAY,EAAE,YAAY,CAAC,CACzD,CAAC;YACJ,CAAC;YACD,MAAM,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;YACjC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,EAAE,uBAAuB,CAAC,CAAC;YAC9C,OAAO,eAAM,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC;QAC3B,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,KAAiB,CAAC,CAAC;QACxC,CAAC;IACH,CAAC;IAEM,aAAa;QAClB,OAAO,IAAI,CAAC,UAAU,CAAC;IACzB,CAAC;IAEO,MAAM,CAAC,YAA0B;QACvC,MAAM,QAAQ,GAAG,IAAI,yBAAc,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACjD,QAAQ,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;IAChC,CAAC;CACF;AA7JD,kCA6JC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rafikidota/iroh",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.27.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",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"bcrypt": "5.1.1",
|
|
45
45
|
"chalk": "4.1.2",
|
|
46
46
|
"class-transformer": "0.5.1",
|
|
47
|
-
"class-validator": "0.14.
|
|
47
|
+
"class-validator": "0.14.2",
|
|
48
48
|
"express": "5.1.0",
|
|
49
49
|
"joi": "17.13.3",
|
|
50
50
|
"passport": "0.7.0",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@eslint/eslintrc": "3.3.1",
|
|
58
|
-
"@eslint/js": "9.
|
|
58
|
+
"@eslint/js": "9.26.0",
|
|
59
59
|
"@types/bcrypt": "5.0.2",
|
|
60
60
|
"@types/express": "5.0.1",
|
|
61
61
|
"@types/node": "22.15.3",
|
|
@@ -63,10 +63,10 @@
|
|
|
63
63
|
"@types/uuid": "10.0.0",
|
|
64
64
|
"@typescript-eslint/eslint-plugin": "8.31.1",
|
|
65
65
|
"@typescript-eslint/parser": "8.31.1",
|
|
66
|
-
"eslint": "9.
|
|
66
|
+
"eslint": "9.26.0",
|
|
67
67
|
"eslint-config-prettier": "10.1.2",
|
|
68
68
|
"eslint-plugin-import": "2.31.0",
|
|
69
|
-
"eslint-plugin-prettier": "5.
|
|
69
|
+
"eslint-plugin-prettier": "5.3.1",
|
|
70
70
|
"globals": "16.0.0",
|
|
71
71
|
"husky": "9.1.7",
|
|
72
72
|
"lint-staged": "15.5.1",
|