@flusys/nestjs-shared 9.1.2 → 9.2.1
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 +94 -18
- package/classes/api-controller.class.d.ts +1 -0
- package/classes/api-service.class.d.ts +7 -2
- package/classes/hybrid-cache.class.d.ts +17 -4
- package/constants/index.d.ts +1 -0
- package/constants/permissions.d.ts +9 -0
- package/fesm/183.js +7 -7
- package/fesm/{282.js → 47.js} +98 -158
- package/fesm/470.js +333 -382
- package/fesm/667.js +17 -17
- package/fesm/681.js +326 -129
- package/fesm/{948.js → 997.js} +46 -24
- package/fesm/chunks/123.js +17 -9
- package/fesm/chunks/37.js +5 -5
- package/fesm/classes/index.js +4 -3
- package/fesm/constants/index.js +19 -8
- package/fesm/decorators/index.js +120 -39
- package/fesm/dtos/index.js +1 -1
- package/fesm/entities/index.js +8 -8
- package/fesm/enums/index.js +2 -2
- package/fesm/exceptions/index.js +12 -12
- package/fesm/guards/index.js +201 -68
- package/fesm/index.js +50 -41
- package/fesm/interceptors/index.js +290 -590
- package/fesm/interfaces/index.js +17 -8
- package/fesm/middlewares/index.js +4 -4
- package/fesm/modules/index.js +2 -2
- package/fesm/pipes/index.js +8 -8
- package/fesm/utils/index.js +137 -478
- package/interceptors/idempotency.interceptor.d.ts +14 -2
- package/interceptors/slug.interceptor.d.ts +1 -0
- package/interfaces/permission-action-registry.interface.d.ts +1 -0
- package/interfaces/permission.interface.d.ts +1 -0
- package/modules/shared-permission-cache/shared-permission-cache.service.d.ts +3 -1
- package/modules/utils/utils.service.d.ts +6 -6
- package/package.json +2 -2
- package/utils/date-time.util.d.ts +0 -1
- package/utils/event-pattern.util.d.ts +1 -0
- package/utils/permission-cache-key.util.d.ts +3 -0
- package/utils/query-helpers.util.d.ts +2 -2
package/fesm/interfaces/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export const __rspack_esm_id = 471;
|
|
2
2
|
export const __rspack_esm_ids = [471];
|
|
3
3
|
export const __webpack_modules__ = {
|
|
4
|
-
|
|
4
|
+
6079(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
5
5
|
const EXPRESSION_ARITHMETIC_OPS = [
|
|
6
6
|
'sum',
|
|
7
7
|
'subtract',
|
|
@@ -68,7 +68,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
68
68
|
|
|
69
69
|
|
|
70
70
|
},
|
|
71
|
-
|
|
71
|
+
5965(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
72
72
|
|
|
73
73
|
// EXPORTS
|
|
74
74
|
__webpack_require__.d(__webpack_exports__, {
|
|
@@ -85,7 +85,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
85
85
|
YH: () => (/* reexport */ expression_interface/* .EXPRESSION_DURATION_UNITS */.YH),
|
|
86
86
|
KR: () => (/* reexport */ NOTIFICATION_ADAPTER),
|
|
87
87
|
VG: () => (/* reexport */ PERMISSION_ACTION_REGISTRY),
|
|
88
|
-
jd: () => (/* reexport */ PERMISSION_RESOLVER),
|
|
88
|
+
jd: () => (/* reexport */ permission_resolver_interface/* .PERMISSION_RESOLVER */.j),
|
|
89
89
|
kF: () => (/* reexport */ PERMISSION_SYNC_ADAPTER),
|
|
90
90
|
kA: () => (/* reexport */ expression_interface/* .UNARY_EXPRESSION_COMPARISONS */.kA)
|
|
91
91
|
});
|
|
@@ -108,16 +108,15 @@ const EMAIL_ADAPTER = 'EMAIL_ADAPTER';
|
|
|
108
108
|
const EVENT_MANAGER_ADAPTER = 'EVENT_MANAGER_ADAPTER';
|
|
109
109
|
|
|
110
110
|
// EXTERNAL MODULE: ./projects/nestjs-shared/src/interfaces/expression.interface.ts
|
|
111
|
-
var expression_interface = __webpack_require__(
|
|
111
|
+
var expression_interface = __webpack_require__(6079);
|
|
112
112
|
;// CONCATENATED MODULE: ./projects/nestjs-shared/src/interfaces/notification-adapter.interface.ts
|
|
113
113
|
const NOTIFICATION_ADAPTER = 'NOTIFICATION_ADAPTER';
|
|
114
114
|
|
|
115
115
|
;// CONCATENATED MODULE: ./projects/nestjs-shared/src/interfaces/permission-action-registry.interface.ts
|
|
116
116
|
const PERMISSION_ACTION_REGISTRY = 'PERMISSION_ACTION_REGISTRY';
|
|
117
117
|
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
118
|
+
// EXTERNAL MODULE: ./projects/nestjs-shared/src/interfaces/permission-resolver.interface.ts
|
|
119
|
+
var permission_resolver_interface = __webpack_require__(1647);
|
|
121
120
|
;// CONCATENATED MODULE: ./projects/nestjs-shared/src/interfaces/permission-sync-adapter.interface.ts
|
|
122
121
|
const PERMISSION_SYNC_ADAPTER = 'PERMISSION_SYNC_ADAPTER';
|
|
123
122
|
|
|
@@ -142,6 +141,16 @@ const PERMISSION_SYNC_ADAPTER = 'PERMISSION_SYNC_ADAPTER';
|
|
|
142
141
|
|
|
143
142
|
|
|
144
143
|
|
|
144
|
+
},
|
|
145
|
+
1647(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
146
|
+
const PERMISSION_RESOLVER = 'PERMISSION_RESOLVER';
|
|
147
|
+
|
|
148
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
149
|
+
}, {
|
|
150
|
+
j: PERMISSION_RESOLVER
|
|
151
|
+
});
|
|
152
|
+
|
|
153
|
+
|
|
145
154
|
},
|
|
146
155
|
|
|
147
156
|
};
|
|
@@ -149,7 +158,7 @@ import { __webpack_require__ } from '../runtime.js';
|
|
|
149
158
|
var __webpack_exec__ = function(moduleId) { return __webpack_require__(__webpack_require__.s = moduleId); }
|
|
150
159
|
import * as __rspack_chunk_1 from './index.js';
|
|
151
160
|
__webpack_require__.C(__rspack_chunk_1);
|
|
152
|
-
var __webpack_exports__ = __webpack_exec__(
|
|
161
|
+
var __webpack_exports__ = __webpack_exec__(5965);var __webpack_exports__AI_ASSISTANT_AUTH_PROVIDER = __webpack_exports__.Fi;
|
|
153
162
|
var __webpack_exports__AI_ASSISTANT_TOOL_PROVIDER = __webpack_exports__.Hb;
|
|
154
163
|
var __webpack_exports__AI_ASSISTANT_USER_LOOKUP_PROVIDER = __webpack_exports__.T4;
|
|
155
164
|
var __webpack_exports__BRANCH_HIERARCHY_RESOLVER = __webpack_exports__.__;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export const __rspack_esm_id = 548;
|
|
2
2
|
export const __rspack_esm_ids = [548];
|
|
3
3
|
export const __webpack_modules__ = {
|
|
4
|
-
|
|
5
|
-
/* import */ var _logger_middleware_js__rspack_import_0 = __webpack_require__(
|
|
4
|
+
6799(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
5
|
+
/* import */ var _logger_middleware_js__rspack_import_0 = __webpack_require__(8244);
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
__webpack_require__.d(__webpack_exports__, {
|
|
@@ -21,11 +21,11 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
21
21
|
};
|
|
22
22
|
import { __webpack_require__ } from '../runtime.js';
|
|
23
23
|
var __webpack_exec__ = function(moduleId) { return __webpack_require__(__webpack_require__.s = moduleId); }
|
|
24
|
-
import * as __rspack_chunk_1 from '../
|
|
24
|
+
import * as __rspack_chunk_1 from '../997.js';
|
|
25
25
|
__webpack_require__.C(__rspack_chunk_1);
|
|
26
26
|
import * as __rspack_chunk_2 from './index.js';
|
|
27
27
|
__webpack_require__.C(__rspack_chunk_2);
|
|
28
|
-
var __webpack_exports__ = __webpack_exec__(
|
|
28
|
+
var __webpack_exports__ = __webpack_exec__(6799);var __webpack_exports__LoggerMiddleware = __webpack_exports__.pq;
|
|
29
29
|
var __webpack_exports__getCompanyId = __webpack_exports__.xR;
|
|
30
30
|
var __webpack_exports__getRequestId = __webpack_exports__.RE;
|
|
31
31
|
var __webpack_exports__getTenantId = __webpack_exports__.EO;
|
package/fesm/modules/index.js
CHANGED
|
@@ -3,7 +3,7 @@ export const __rspack_esm_ids = [900];
|
|
|
3
3
|
export const __webpack_modules__ = {};
|
|
4
4
|
import { __webpack_require__ } from '../runtime.js';
|
|
5
5
|
var __webpack_exec__ = function(moduleId) { return __webpack_require__(__webpack_require__.s = moduleId); }
|
|
6
|
-
import * as __rspack_chunk_1 from '../
|
|
6
|
+
import * as __rspack_chunk_1 from '../997.js';
|
|
7
7
|
__webpack_require__.C(__rspack_chunk_1);
|
|
8
8
|
import * as __rspack_chunk_2 from '../681.js';
|
|
9
9
|
__webpack_require__.C(__rspack_chunk_2);
|
|
@@ -11,7 +11,7 @@ import * as __rspack_chunk_3 from '../667.js';
|
|
|
11
11
|
__webpack_require__.C(__rspack_chunk_3);
|
|
12
12
|
import * as __rspack_chunk_4 from './index.js';
|
|
13
13
|
__webpack_require__.C(__rspack_chunk_4);
|
|
14
|
-
var __webpack_exports__ = __webpack_exec__(
|
|
14
|
+
var __webpack_exports__ = __webpack_exec__(1686);var __webpack_exports__CacheModule = __webpack_exports__.vd;
|
|
15
15
|
var __webpack_exports__EventBusExplorer = __webpack_exports__.K6;
|
|
16
16
|
var __webpack_exports__EventBusModule = __webpack_exports__.Zv;
|
|
17
17
|
var __webpack_exports__MultiTenantDataSourceService = __webpack_exports__.Ct;
|
package/fesm/pipes/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import * as __rspack_external_class_validator_7b99ef4d from "class-validator";
|
|
|
3
3
|
export const __rspack_esm_id = 360;
|
|
4
4
|
export const __rspack_esm_ids = [360];
|
|
5
5
|
export const __webpack_modules__ = {
|
|
6
|
-
|
|
6
|
+
4389(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
7
7
|
// ==================== AUTH (Shared across guards/interceptors) ====================
|
|
8
8
|
// These are duplicated in nestjs-auth but needed here to avoid circular dependencies
|
|
9
9
|
const AUTH_MESSAGES = {
|
|
@@ -63,7 +63,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
63
63
|
|
|
64
64
|
|
|
65
65
|
},
|
|
66
|
-
|
|
66
|
+
3928(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
67
67
|
|
|
68
68
|
// EXPORTS
|
|
69
69
|
__webpack_require__.d(__webpack_exports__, {
|
|
@@ -73,11 +73,11 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
73
73
|
});
|
|
74
74
|
|
|
75
75
|
// EXTERNAL MODULE: external "@nestjs/common"
|
|
76
|
-
var common_ = __webpack_require__(
|
|
76
|
+
var common_ = __webpack_require__(6157);
|
|
77
77
|
// EXTERNAL MODULE: external "class-validator"
|
|
78
|
-
var external_class_validator_ = __webpack_require__(
|
|
78
|
+
var external_class_validator_ = __webpack_require__(5421);
|
|
79
79
|
// EXTERNAL MODULE: ./projects/nestjs-shared/src/constants/message-keys.ts
|
|
80
|
-
var message_keys = __webpack_require__(
|
|
80
|
+
var message_keys = __webpack_require__(4389);
|
|
81
81
|
;// CONCATENATED MODULE: ./projects/nestjs-shared/src/pipes/dto-body-validation.pipe.ts
|
|
82
82
|
|
|
83
83
|
|
|
@@ -172,13 +172,13 @@ function declaresProperty(dto, key) {
|
|
|
172
172
|
|
|
173
173
|
|
|
174
174
|
},
|
|
175
|
-
|
|
175
|
+
6157(module) {
|
|
176
176
|
|
|
177
177
|
module.exports = __rspack_external__nestjs_common_a04939da;
|
|
178
178
|
|
|
179
179
|
|
|
180
180
|
},
|
|
181
|
-
|
|
181
|
+
5421(module) {
|
|
182
182
|
|
|
183
183
|
module.exports = __rspack_external_class_validator_7b99ef4d;
|
|
184
184
|
|
|
@@ -190,7 +190,7 @@ import { __webpack_require__ } from '../runtime.js';
|
|
|
190
190
|
var __webpack_exec__ = function(moduleId) { return __webpack_require__(__webpack_require__.s = moduleId); }
|
|
191
191
|
import * as __rspack_chunk_1 from './index.js';
|
|
192
192
|
__webpack_require__.C(__rspack_chunk_1);
|
|
193
|
-
var __webpack_exports__ = __webpack_exec__(
|
|
193
|
+
var __webpack_exports__ = __webpack_exec__(3928);var __webpack_exports__AUDIT_BODY_KEYS = __webpack_exports__.gG;
|
|
194
194
|
var __webpack_exports__DEFAULT_VALIDATION_OPTIONS = __webpack_exports__.d0;
|
|
195
195
|
var __webpack_exports__DtoBodyValidationPipe = __webpack_exports__.zT;
|
|
196
196
|
export { __webpack_exports__AUDIT_BODY_KEYS as AUDIT_BODY_KEYS, __webpack_exports__DEFAULT_VALIDATION_OPTIONS as DEFAULT_VALIDATION_OPTIONS, __webpack_exports__DtoBodyValidationPipe as DtoBodyValidationPipe };
|