@application-kit/audit-log 0.1.1 → 0.12.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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @application-kit/audit-log
|
|
2
2
|
|
|
3
|
+
## 0.12.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- df7cdd0: Клиент сортирует листинг только по полям, которые листинг объявил, а `CursorPaginator` берёт имя колонки из метаданных entity и отклоняет неизвестное поле ошибкой `InvalidSortFieldError` (400) до обращения к базе данных. **Ломающее:** потребителю — заменить позиционные параметры `getListByCursor` после `mapper` объектом `{ paginator, sortableFields, filters, sorting, estimateTotal }`, в `sortableFields` перечислить поля, по которым разрешено сортировать.
|
|
8
|
+
- Updated dependencies [df7cdd0]
|
|
9
|
+
- @application-kit/typeorm@0.12.0
|
|
10
|
+
- @application-kit/graphql@0.12.0
|
|
11
|
+
- @application-kit/transaction-outbox@0.12.0
|
|
12
|
+
- @application-kit/authorization@0.12.0
|
|
13
|
+
|
|
14
|
+
## 0.1.2
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- 8e10f98: Peer-зависимости принимают Nest 12, `@nestjs/graphql` и `@nestjs/mercurius` 14, `@nestjs/cqrs` 12 и `nestjs-pino` 5. `PinoLoggerConfig` задаёт `forRoutes` явно: с маршрутом nestjs-pino 5 по умолчанию запросы на Fastify не логировались.
|
|
19
|
+
- Updated dependencies [8e10f98]
|
|
20
|
+
- @application-kit/authorization@0.5.1
|
|
21
|
+
- @application-kit/graphql@0.8.1
|
|
22
|
+
- @application-kit/transaction-outbox@0.4.2
|
|
23
|
+
- @application-kit/typeorm@0.5.3
|
|
24
|
+
|
|
3
25
|
## 0.1.1
|
|
4
26
|
|
|
5
27
|
### Patch Changes
|
package/dist/cjs/nest/infrastructure/database/typeorm/repositories/audit-record.repository.js
CHANGED
|
@@ -36,7 +36,7 @@ let AuditRecordRepository = class AuditRecordRepository {
|
|
|
36
36
|
.execute();
|
|
37
37
|
}
|
|
38
38
|
async list(paginator, sorting, filters) {
|
|
39
|
-
return (0, typeorm_1.getListByCursor)(audit_record_entity_js_1.AuditRecordEntity, this.repository.createQueryBuilder('auditRecord'), (entities) => entities.map((entity) => this.mapper.toDto(entity)), paginator,
|
|
39
|
+
return (0, typeorm_1.getListByCursor)(audit_record_entity_js_1.AuditRecordEntity, this.repository.createQueryBuilder('auditRecord'), (entities) => entities.map((entity) => this.mapper.toDto(entity)), { filters, paginator, sortableFields: ['createdAt'], sorting });
|
|
40
40
|
}
|
|
41
41
|
};
|
|
42
42
|
exports.AuditRecordRepository = AuditRecordRepository;
|
package/dist/esm/nest/infrastructure/database/typeorm/repositories/audit-record.repository.js
CHANGED
|
@@ -33,7 +33,7 @@ let AuditRecordRepository = class AuditRecordRepository {
|
|
|
33
33
|
.execute();
|
|
34
34
|
}
|
|
35
35
|
async list(paginator, sorting, filters) {
|
|
36
|
-
return getListByCursor(AuditRecordEntity, this.repository.createQueryBuilder('auditRecord'), (entities) => entities.map((entity) => this.mapper.toDto(entity)), paginator,
|
|
36
|
+
return getListByCursor(AuditRecordEntity, this.repository.createQueryBuilder('auditRecord'), (entities) => entities.map((entity) => this.mapper.toDto(entity)), { filters, paginator, sortableFields: ['createdAt'], sorting });
|
|
37
37
|
}
|
|
38
38
|
};
|
|
39
39
|
AuditRecordRepository = __decorate([
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@application-kit/audit-log",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.0",
|
|
4
4
|
"description": "Журнал аудита для NestJS: append-only таблица с триггерами, запись из событий, чтение через GraphQL, факты запроса для outbox; роли, действия и гранты приносит приложение",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"audit-log",
|
|
@@ -66,21 +66,21 @@
|
|
|
66
66
|
"test:unit": "vitest run"
|
|
67
67
|
},
|
|
68
68
|
"dependencies": {
|
|
69
|
-
"@application-kit/authorization": "^0.
|
|
70
|
-
"@application-kit/graphql": "^0.
|
|
71
|
-
"@application-kit/transaction-outbox": "^0.
|
|
72
|
-
"@application-kit/typeorm": "^0.
|
|
69
|
+
"@application-kit/authorization": "^0.12.0",
|
|
70
|
+
"@application-kit/graphql": "^0.12.0",
|
|
71
|
+
"@application-kit/transaction-outbox": "^0.12.0",
|
|
72
|
+
"@application-kit/typeorm": "^0.12.0"
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
75
|
-
"@application-kit/testing": "^0.10.
|
|
75
|
+
"@application-kit/testing": "^0.10.6",
|
|
76
76
|
"@casl/ability": "^7.0.1",
|
|
77
|
-
"@libs-for-dev/nestjs-ddd-library": "1.
|
|
77
|
+
"@libs-for-dev/nestjs-ddd-library": "1.5.0",
|
|
78
78
|
"@libs-for-dev/typeorm-plural-naming-strategy": "^1.4.0",
|
|
79
|
-
"@nestjs/common": "^
|
|
80
|
-
"@nestjs/core": "^
|
|
81
|
-
"@nestjs/cqrs": "^
|
|
82
|
-
"@nestjs/graphql": "^
|
|
83
|
-
"@nestjs/testing": "^
|
|
79
|
+
"@nestjs/common": "^12.0.0",
|
|
80
|
+
"@nestjs/core": "^12.0.0",
|
|
81
|
+
"@nestjs/cqrs": "^12.0.0",
|
|
82
|
+
"@nestjs/graphql": "^14.0.0",
|
|
83
|
+
"@nestjs/testing": "^12.0.0",
|
|
84
84
|
"@nestjs/typeorm": "^12.0.2",
|
|
85
85
|
"@stryker-mutator/core": "^10.0.0",
|
|
86
86
|
"@stryker-mutator/vitest-runner": "^10.0.0",
|
|
@@ -89,31 +89,31 @@
|
|
|
89
89
|
"class-validator": "^0.15.1",
|
|
90
90
|
"fast-equals": "^6.0.2",
|
|
91
91
|
"graphql": "^17.0.2",
|
|
92
|
-
"nestjs-pino": "^
|
|
92
|
+
"nestjs-pino": "^5.0.0",
|
|
93
93
|
"oxide.ts": "^1.1.0",
|
|
94
94
|
"pg": "^8.23.0",
|
|
95
95
|
"pino": "^10.3.1",
|
|
96
96
|
"pino-http": "^11.0.0",
|
|
97
97
|
"reflect-metadata": "^0.2.2",
|
|
98
98
|
"rxjs": "^7.8.2",
|
|
99
|
-
"testcontainers": "12.1
|
|
99
|
+
"testcontainers": "12.2.1",
|
|
100
100
|
"typeorm": "^1.1.0",
|
|
101
101
|
"typescript": "^6.0.3",
|
|
102
102
|
"ui7": "^0.2.3",
|
|
103
|
-
"vitest": "^
|
|
103
|
+
"vitest": "^5.0.0"
|
|
104
104
|
},
|
|
105
105
|
"peerDependencies": {
|
|
106
106
|
"@casl/ability": "^7.0.0",
|
|
107
107
|
"@libs-for-dev/nestjs-ddd-library": "^1.4.0",
|
|
108
|
-
"@nestjs/common": "^11.0.0",
|
|
109
|
-
"@nestjs/core": "^11.0.0",
|
|
110
|
-
"@nestjs/cqrs": "^11.0.0",
|
|
111
|
-
"@nestjs/graphql": "^13.0.0",
|
|
108
|
+
"@nestjs/common": "^11.0.0 || ^12.0.0",
|
|
109
|
+
"@nestjs/core": "^11.0.0 || ^12.0.0",
|
|
110
|
+
"@nestjs/cqrs": "^11.0.0 || ^12.0.0",
|
|
111
|
+
"@nestjs/graphql": "^13.0.0 || ^14.0.0",
|
|
112
112
|
"@nestjs/typeorm": "^11.0.3 || ^12.0.0",
|
|
113
113
|
"class-transformer": "^0.5.1",
|
|
114
114
|
"class-validator": "^0.15.1",
|
|
115
115
|
"graphql": "^16.0.0 || ^17.0.0",
|
|
116
|
-
"nestjs-pino": "^4.6.1",
|
|
116
|
+
"nestjs-pino": "^4.6.1 || ^5.0.0",
|
|
117
117
|
"oxide.ts": "^1.1.0",
|
|
118
118
|
"reflect-metadata": "^0.2.2",
|
|
119
119
|
"rxjs": "^7.8.2",
|