@flusys/nestjs-entity-builder 9.0.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 +111 -0
- package/config/entity-builder.constants.d.ts +6 -0
- package/config/event-actions.d.ts +8 -0
- package/config/index.d.ts +3 -0
- package/config/message-keys.d.ts +542 -0
- package/controllers/entity-definition.controller.d.ts +40 -0
- package/controllers/field-definition.controller.d.ts +22 -0
- package/controllers/flow-definition.controller.d.ts +51 -0
- package/controllers/flow-execution.controller.d.ts +21 -0
- package/controllers/flow-runtime.controller.d.ts +24 -0
- package/controllers/index.d.ts +5 -0
- package/docs/entity-builder-swagger.config.d.ts +3 -0
- package/docs/index.d.ts +1 -0
- package/dtos/entity-definition.dto.d.ts +58 -0
- package/dtos/field-definition.dto.d.ts +42 -0
- package/dtos/flow.dto.d.ts +76 -0
- package/dtos/index.d.ts +3 -0
- package/dtos/schema-change.dto.d.ts +53 -0
- package/entities/entity-definition.entity.d.ts +15 -0
- package/entities/field-definition.entity.d.ts +23 -0
- package/entities/flow-definition.entity.d.ts +14 -0
- package/entities/flow-execution.entity.d.ts +19 -0
- package/entities/flow-version.entity.d.ts +10 -0
- package/entities/index.d.ts +14 -0
- package/entities/schema-change-log.entity.d.ts +15 -0
- package/enums/ddl-operation.enum.d.ts +13 -0
- package/enums/entity-status.enum.d.ts +5 -0
- package/enums/field-type.enum.d.ts +15 -0
- package/enums/index.d.ts +3 -0
- package/fesm/21.js +576 -0
- package/fesm/362.js +1074 -0
- package/fesm/458.js +649 -0
- package/fesm/582.js +1247 -0
- package/fesm/677.js +7534 -0
- package/fesm/719.js +3597 -0
- package/fesm/794.js +979 -0
- package/fesm/913.js +1620 -0
- package/fesm/config/index.js +126 -0
- package/fesm/controllers/index.js +27 -0
- package/fesm/docs/index.js +82 -0
- package/fesm/dtos/index.js +327 -0
- package/fesm/entities/index.js +18 -0
- package/fesm/enums/index.js +97 -0
- package/fesm/guards/index.js +226 -0
- package/fesm/index.js +548 -0
- package/fesm/interfaces/index.js +80 -0
- package/fesm/modules/index.js +25 -0
- package/fesm/rule-engine/index.js +21 -0
- package/fesm/runtime.js +85 -0
- package/fesm/services/index.js +526 -0
- package/flow-engine/flow-api-key.d.ts +6 -0
- package/flow-engine/flow-code-sandbox.d.ts +5 -0
- package/flow-engine/flow-engine.d.ts +22 -0
- package/flow-engine/flow-graph.validator.d.ts +20 -0
- package/flow-engine/flow-http.client.d.ts +15 -0
- package/flow-engine/flow-input.validator.d.ts +7 -0
- package/flow-engine/flow-node-handlers.d.ts +5 -0
- package/flow-engine/flow-rate-limiter.d.ts +8 -0
- package/flow-engine/flow-reference.d.ts +7 -0
- package/flow-engine/flow-run.types.d.ts +131 -0
- package/flow-engine/flow.errors.d.ts +27 -0
- package/flow-engine/flow.types.d.ts +315 -0
- package/flow-engine/index.d.ts +4 -0
- package/flow-engine/redact.d.ts +3 -0
- package/flow-engine/ssrf-guard.d.ts +6 -0
- package/guards/flow-access.guard.d.ts +11 -0
- package/guards/index.d.ts +1 -0
- package/index.d.ts +11 -0
- package/interfaces/entity-builder-module.interface.d.ts +28 -0
- package/interfaces/field-definition.interface.d.ts +33 -0
- package/interfaces/flow-definition.interface.d.ts +24 -0
- package/interfaces/generic-record.interface.d.ts +15 -0
- package/interfaces/index.d.ts +5 -0
- package/interfaces/reference-provider.interface.d.ts +8 -0
- package/interfaces/schema-dialect-adapter.interface.d.ts +15 -0
- package/modules/entity-builder.module.d.ts +10 -0
- package/modules/index.d.ts +1 -0
- package/package.json +93 -0
- package/rule-engine/index.d.ts +3 -0
- package/rule-engine/rule-engine.service.d.ts +40 -0
- package/rule-engine/rule-evaluation-context.interface.d.ts +28 -0
- package/rule-engine/rule-ip.d.ts +3 -0
- package/rule-engine/rule-permission.d.ts +10 -0
- package/rule-engine/rule-regex.d.ts +4 -0
- package/rule-engine/rule-values.d.ts +5 -0
- package/rule-engine/rule.interface.d.ts +79 -0
- package/services/database-error.mapper.d.ts +2 -0
- package/services/definition-cache.service.d.ts +8 -0
- package/services/entity-builder-config.service.d.ts +12 -0
- package/services/entity-builder-datasource.provider.d.ts +24 -0
- package/services/entity-definition.service.d.ts +17 -0
- package/services/entity-flow-scaffold.d.ts +27 -0
- package/services/entity-permission.service.d.ts +8 -0
- package/services/field-definition.service.d.ts +17 -0
- package/services/field-type-conversion.d.ts +15 -0
- package/services/field-value-validator.d.ts +17 -0
- package/services/flow-definition.service.d.ts +62 -0
- package/services/flow-execution.service.d.ts +38 -0
- package/services/flow-executor.service.d.ts +41 -0
- package/services/flow-reference.provider.d.ts +13 -0
- package/services/flow-runtime.service.d.ts +30 -0
- package/services/generic-entity-service.factory.d.ts +12 -0
- package/services/generic-entity.service.d.ts +67 -0
- package/services/identifier-rules.d.ts +9 -0
- package/services/index.d.ts +26 -0
- package/services/reference-rewrite.d.ts +7 -0
- package/services/reference-scanner.service.d.ts +10 -0
- package/services/schema-change-executor.service.d.ts +39 -0
- package/services/schema-change.types.d.ts +59 -0
- package/services/schema-columns.d.ts +26 -0
- package/services/schema-dialect-adapter.service.d.ts +13 -0
- package/services/schema-evolution.service.d.ts +67 -0
- package/services/schema-registry.service.d.ts +13 -0
- package/services/schema-sync.service.d.ts +28 -0
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
export const __rspack_esm_id = 743;
|
|
2
|
+
export const __rspack_esm_ids = [743];
|
|
3
|
+
export const __webpack_modules__ = {
|
|
4
|
+
9949(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
5
|
+
/** Structural operations recorded by SchemaChangeLog. */ var DdlOperation = /*#__PURE__*/ function(DdlOperation) {
|
|
6
|
+
DdlOperation["CREATE_TABLE"] = "CREATE_TABLE";
|
|
7
|
+
DdlOperation["ADD_COLUMN"] = "ADD_COLUMN";
|
|
8
|
+
DdlOperation["CREATE_INDEX"] = "CREATE_INDEX";
|
|
9
|
+
DdlOperation["MARK_DEPRECATED"] = "MARK_DEPRECATED";
|
|
10
|
+
DdlOperation["RESTORE_FIELD"] = "RESTORE_FIELD";
|
|
11
|
+
DdlOperation["ALTER_FIELD"] = "ALTER_FIELD";
|
|
12
|
+
DdlOperation["RENAME_FIELD"] = "RENAME_FIELD";
|
|
13
|
+
DdlOperation["DROP_COLUMN"] = "DROP_COLUMN";
|
|
14
|
+
DdlOperation["ALTER_ENTITY"] = "ALTER_ENTITY";
|
|
15
|
+
DdlOperation["DROP_TABLE"] = "DROP_TABLE";
|
|
16
|
+
DdlOperation["REPAIR"] = "REPAIR";
|
|
17
|
+
return DdlOperation;
|
|
18
|
+
}({});
|
|
19
|
+
|
|
20
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
21
|
+
i: () => (DdlOperation)
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
},
|
|
26
|
+
1313(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
27
|
+
/**
|
|
28
|
+
* Lifecycle status of an EntityDefinition.
|
|
29
|
+
* DRAFT - metadata created, table not yet materialized.
|
|
30
|
+
* ACTIVE - table exists; flows read and write its records.
|
|
31
|
+
* DEPRECATED - no new writes; physical table/data left intact.
|
|
32
|
+
*/ var EntityStatus = /*#__PURE__*/ function(EntityStatus) {
|
|
33
|
+
EntityStatus["DRAFT"] = "DRAFT";
|
|
34
|
+
EntityStatus["ACTIVE"] = "ACTIVE";
|
|
35
|
+
EntityStatus["DEPRECATED"] = "DEPRECATED";
|
|
36
|
+
return EntityStatus;
|
|
37
|
+
}({});
|
|
38
|
+
|
|
39
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
40
|
+
c: () => (EntityStatus)
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
},
|
|
45
|
+
9614(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
46
|
+
/**
|
|
47
|
+
* Storable field types a FieldDefinition can declare.
|
|
48
|
+
* Mapped to a driver-specific column type by SchemaDialectAdapterService.
|
|
49
|
+
*/ var FieldType = /*#__PURE__*/ function(FieldType) {
|
|
50
|
+
FieldType["TEXT"] = "TEXT";
|
|
51
|
+
FieldType["LONG_TEXT"] = "LONG_TEXT";
|
|
52
|
+
FieldType["INTEGER"] = "INTEGER";
|
|
53
|
+
FieldType["DECIMAL"] = "DECIMAL";
|
|
54
|
+
FieldType["BOOLEAN"] = "BOOLEAN";
|
|
55
|
+
FieldType["DATE"] = "DATE";
|
|
56
|
+
FieldType["DATETIME"] = "DATETIME";
|
|
57
|
+
FieldType["EMAIL"] = "EMAIL";
|
|
58
|
+
FieldType["SINGLE_SELECT"] = "SINGLE_SELECT";
|
|
59
|
+
FieldType["MULTI_SELECT"] = "MULTI_SELECT";
|
|
60
|
+
FieldType["RELATION"] = "RELATION";
|
|
61
|
+
FieldType["JSON"] = "JSON";
|
|
62
|
+
FieldType["FILE"] = "FILE";
|
|
63
|
+
return FieldType;
|
|
64
|
+
}({});
|
|
65
|
+
|
|
66
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
67
|
+
P: () => (FieldType)
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
},
|
|
72
|
+
6188(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
73
|
+
/* import */ var _field_type_enum_js__rspack_import_0 = __webpack_require__(9614);
|
|
74
|
+
/* import */ var _entity_status_enum_js__rspack_import_1 = __webpack_require__(1313);
|
|
75
|
+
/* import */ var _ddl_operation_enum_js__rspack_import_2 = __webpack_require__(9949);
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
81
|
+
PU: () => (/* reexport safe */ _field_type_enum_js__rspack_import_0.P),
|
|
82
|
+
cx: () => (/* reexport safe */ _entity_status_enum_js__rspack_import_1.c),
|
|
83
|
+
iq: () => (/* reexport safe */ _ddl_operation_enum_js__rspack_import_2.i)
|
|
84
|
+
});
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
},
|
|
88
|
+
|
|
89
|
+
};
|
|
90
|
+
import { __webpack_require__ } from '../runtime.js';
|
|
91
|
+
var __webpack_exec__ = function(moduleId) { return __webpack_require__(__webpack_require__.s = moduleId); }
|
|
92
|
+
import * as __rspack_chunk_1 from './index.js';
|
|
93
|
+
__webpack_require__.C(__rspack_chunk_1);
|
|
94
|
+
var __webpack_exports__ = __webpack_exec__(6188);var __webpack_exports__DdlOperation = __webpack_exports__.iq;
|
|
95
|
+
var __webpack_exports__EntityStatus = __webpack_exports__.cx;
|
|
96
|
+
var __webpack_exports__FieldType = __webpack_exports__.PU;
|
|
97
|
+
export { __webpack_exports__DdlOperation as DdlOperation, __webpack_exports__EntityStatus as EntityStatus, __webpack_exports__FieldType as FieldType };
|
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
import { lastValueFrom } from "rxjs";
|
|
2
|
+
import * as __rspack_external__flusys_nestjs_shared_guards_3f79ddd1 from "@flusys/nestjs-shared/guards";
|
|
3
|
+
export const __rspack_esm_id = 333;
|
|
4
|
+
export const __rspack_esm_ids = [333];
|
|
5
|
+
export const __webpack_modules__ = {
|
|
6
|
+
4196(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
7
|
+
|
|
8
|
+
// EXPORTS
|
|
9
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
10
|
+
C: () => (/* binding */ FlowAccessGuard)
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
// EXTERNAL MODULE: external "@flusys/nestjs-shared/constants"
|
|
14
|
+
var constants_ = __webpack_require__(9140);
|
|
15
|
+
// EXTERNAL MODULE: external "@flusys/nestjs-shared/guards"
|
|
16
|
+
var guards_ = __webpack_require__(3513);
|
|
17
|
+
// EXTERNAL MODULE: external "@flusys/nestjs-shared/modules"
|
|
18
|
+
var modules_ = __webpack_require__(1236);
|
|
19
|
+
// EXTERNAL MODULE: external "@nestjs/common"
|
|
20
|
+
var common_ = __webpack_require__(6157);
|
|
21
|
+
// EXTERNAL MODULE: external "@nestjs/core"
|
|
22
|
+
var core_ = __webpack_require__(3075);
|
|
23
|
+
;// CONCATENATED MODULE: external "rxjs"
|
|
24
|
+
|
|
25
|
+
// EXTERNAL MODULE: ./projects/nestjs-entity-builder/src/config/message-keys.ts
|
|
26
|
+
var message_keys = __webpack_require__(5732);
|
|
27
|
+
// EXTERNAL MODULE: ./projects/nestjs-entity-builder/src/services/flow-definition.service.ts + 1 modules
|
|
28
|
+
var flow_definition_service = __webpack_require__(4921);
|
|
29
|
+
// EXTERNAL MODULE: ./projects/nestjs-entity-builder/src/services/flow-runtime.service.ts
|
|
30
|
+
var flow_runtime_service = __webpack_require__(2300);
|
|
31
|
+
;// CONCATENATED MODULE: ./projects/nestjs-entity-builder/src/flow-engine/flow-rate-limiter.ts
|
|
32
|
+
const WINDOW_MS = 60_000;
|
|
33
|
+
const DEFAULT_MAX_KEYS = 10_000;
|
|
34
|
+
/**
|
|
35
|
+
* Fixed-window counter per key (flow + caller IP). In memory, so each server instance counts on
|
|
36
|
+
* its own - a guard against floods and brute-forcing of API keys, not an exact global quota.
|
|
37
|
+
* A window is re-inserted when it starts, so the map stays ordered by expiry: expired windows are
|
|
38
|
+
* dropped from the front in amortized O(1), and at `maxKeys` the oldest window is evicted.
|
|
39
|
+
*/ class FlowRateLimiter {
|
|
40
|
+
maxKeys;
|
|
41
|
+
windows = new Map();
|
|
42
|
+
constructor(maxKeys = DEFAULT_MAX_KEYS){
|
|
43
|
+
this.maxKeys = maxKeys;
|
|
44
|
+
}
|
|
45
|
+
/** @returns true if the call is allowed. limit 0 = unlimited. */ hit(key, limitPerMinute, now = Date.now()) {
|
|
46
|
+
if (limitPerMinute <= 0) return true;
|
|
47
|
+
this.dropExpired(now);
|
|
48
|
+
const current = this.windows.get(key);
|
|
49
|
+
if (current && current.resetAt > now) {
|
|
50
|
+
current.count++;
|
|
51
|
+
return current.count <= limitPerMinute;
|
|
52
|
+
}
|
|
53
|
+
if (current) this.windows.delete(key);
|
|
54
|
+
if (this.windows.size >= this.maxKeys) this.windows.delete(this.windows.keys().next().value);
|
|
55
|
+
this.windows.set(key, {
|
|
56
|
+
count: 1,
|
|
57
|
+
resetAt: now + WINDOW_MS
|
|
58
|
+
});
|
|
59
|
+
return true;
|
|
60
|
+
}
|
|
61
|
+
get size() {
|
|
62
|
+
return this.windows.size;
|
|
63
|
+
}
|
|
64
|
+
dropExpired(now) {
|
|
65
|
+
for (const [key, window] of this.windows){
|
|
66
|
+
if (window.resetAt > now) return;
|
|
67
|
+
this.windows.delete(key);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
// EXTERNAL MODULE: ./projects/nestjs-entity-builder/src/flow-engine/flow-api-key.ts
|
|
73
|
+
var flow_api_key = __webpack_require__(4816);
|
|
74
|
+
// EXTERNAL MODULE: ./projects/nestjs-entity-builder/src/flow-engine/flow.types.ts
|
|
75
|
+
var flow_types = __webpack_require__(6256);
|
|
76
|
+
;// CONCATENATED MODULE: ./projects/nestjs-entity-builder/src/guards/flow-access.guard.ts
|
|
77
|
+
function _ts_decorate(decorators, target, key, desc) {
|
|
78
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
79
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") {
|
|
80
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
81
|
+
} else {
|
|
82
|
+
for(var i = decorators.length - 1; i >= 0; i--){
|
|
83
|
+
if (d = decorators[i]) {
|
|
84
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
89
|
+
}
|
|
90
|
+
function _ts_metadata(metadataKey, metadataValue) {
|
|
91
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") {
|
|
92
|
+
return Reflect.metadata(metadataKey, metadataValue);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
function _ts_param(paramIndex, decorator) {
|
|
96
|
+
return function(target, key) {
|
|
97
|
+
decorator(target, key, paramIndex);
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
const limiter = new FlowRateLimiter();
|
|
113
|
+
class FlowAccessGuard {
|
|
114
|
+
moduleRef;
|
|
115
|
+
permissionCache;
|
|
116
|
+
jwtGuard;
|
|
117
|
+
constructor(moduleRef, permissionCache){
|
|
118
|
+
this.moduleRef = moduleRef;
|
|
119
|
+
this.permissionCache = permissionCache;
|
|
120
|
+
}
|
|
121
|
+
async canActivate(context) {
|
|
122
|
+
const request = context.switchToHttp().getRequest();
|
|
123
|
+
const slug = request.params?.slug;
|
|
124
|
+
const contextId = core_.ContextIdFactory.getByRequest(request);
|
|
125
|
+
const runtime = await this.moduleRef.resolve(flow_runtime_service/* .FlowRuntimeService */.a, contextId, {
|
|
126
|
+
strict: false
|
|
127
|
+
});
|
|
128
|
+
const flow = slug ? await runtime.findActive(slug) : null;
|
|
129
|
+
const endpoint = flow ? (0,flow_types/* .findEndpoint */.vS)(flow, request.params?.endpoint) : undefined;
|
|
130
|
+
// A Request step for other flows only has no URL: it looks the same as an unknown one.
|
|
131
|
+
if (!flow || !endpoint || endpoint.authMode === 'internal') throw new common_.NotFoundException({
|
|
132
|
+
message: 'Not found',
|
|
133
|
+
messageKey: message_keys/* .FLOW_MESSAGES.NOT_FOUND */.wu.NOT_FOUND
|
|
134
|
+
});
|
|
135
|
+
request.flowDefinition = flow;
|
|
136
|
+
request.flowEndpoint = endpoint;
|
|
137
|
+
const ip = request.ip ?? request.socket?.remoteAddress ?? 'unknown';
|
|
138
|
+
if (!limiter.hit(`${flow.id}|${endpoint.nodeId}|${ip}`, endpoint.rateLimitPerMinute)) {
|
|
139
|
+
throw new common_.HttpException({
|
|
140
|
+
message: 'Too many requests. Try again in a minute.',
|
|
141
|
+
messageKey: message_keys/* .FLOW_MESSAGES.RATE_LIMITED */.wu.RATE_LIMITED
|
|
142
|
+
}, common_.HttpStatus.TOO_MANY_REQUESTS);
|
|
143
|
+
}
|
|
144
|
+
switch(endpoint.authMode){
|
|
145
|
+
case 'public':
|
|
146
|
+
return true;
|
|
147
|
+
case 'api_key':
|
|
148
|
+
{
|
|
149
|
+
const header = request.headers?.['x-api-key'];
|
|
150
|
+
if (!(0,flow_api_key/* .apiKeyOpens */.NT)(endpoint.apiKey, Array.isArray(header) ? header[0] : header)) {
|
|
151
|
+
throw new common_.UnauthorizedException({
|
|
152
|
+
message: 'A valid API key is required (x-api-key header).',
|
|
153
|
+
messageKey: message_keys/* .FLOW_MESSAGES.API_KEY_INVALID */.wu.API_KEY_INVALID
|
|
154
|
+
});
|
|
155
|
+
}
|
|
156
|
+
return true;
|
|
157
|
+
}
|
|
158
|
+
case 'jwt':
|
|
159
|
+
if (!await this.authenticate(context)) return false;
|
|
160
|
+
return true;
|
|
161
|
+
case 'permission':
|
|
162
|
+
{
|
|
163
|
+
if (!await this.authenticate(context)) return false;
|
|
164
|
+
await this.permissionCache.assertPermission(request.user, endpoint.permissionCode || (0,flow_definition_service/* .defaultFlowPermissionCode */.Er)(flow.slug));
|
|
165
|
+
return true;
|
|
166
|
+
}
|
|
167
|
+
default:
|
|
168
|
+
throw new common_.UnauthorizedException({
|
|
169
|
+
message: 'Authentication required',
|
|
170
|
+
messageKey: constants_.ERROR_MESSAGES.UNAUTHORIZED
|
|
171
|
+
});
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
async authenticate(context) {
|
|
175
|
+
this.jwtGuard ??= await this.moduleRef.create(guards_.JwtAuthGuard);
|
|
176
|
+
const result = this.jwtGuard.canActivate(context);
|
|
177
|
+
if (typeof result === 'boolean') return result;
|
|
178
|
+
if (result instanceof Promise) return result;
|
|
179
|
+
return lastValueFrom(result);
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
FlowAccessGuard = _ts_decorate([
|
|
183
|
+
(0,common_.Injectable)(),
|
|
184
|
+
_ts_param(0, (0,common_.Inject)(core_.ModuleRef)),
|
|
185
|
+
_ts_param(1, (0,common_.Inject)(modules_.SharedPermissionCacheService)),
|
|
186
|
+
_ts_metadata("design:type", Function),
|
|
187
|
+
_ts_metadata("design:paramtypes", [
|
|
188
|
+
typeof core_.ModuleRef === "undefined" ? Object : core_.ModuleRef,
|
|
189
|
+
typeof modules_.SharedPermissionCacheService === "undefined" ? Object : modules_.SharedPermissionCacheService
|
|
190
|
+
])
|
|
191
|
+
], FlowAccessGuard);
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
},
|
|
195
|
+
5460(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
196
|
+
/* import */ var _flow_access_guard_js__rspack_import_0 = __webpack_require__(4196);
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
200
|
+
C: () => (/* reexport safe */ _flow_access_guard_js__rspack_import_0.C)
|
|
201
|
+
});
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
},
|
|
205
|
+
3513(module) {
|
|
206
|
+
|
|
207
|
+
module.exports = __rspack_external__flusys_nestjs_shared_guards_3f79ddd1;
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
},
|
|
211
|
+
|
|
212
|
+
};
|
|
213
|
+
import { __webpack_require__ } from '../runtime.js';
|
|
214
|
+
var __webpack_exec__ = function(moduleId) { return __webpack_require__(__webpack_require__.s = moduleId); }
|
|
215
|
+
import * as __rspack_chunk_1 from '../21.js';
|
|
216
|
+
__webpack_require__.C(__rspack_chunk_1);
|
|
217
|
+
import * as __rspack_chunk_2 from '../582.js';
|
|
218
|
+
__webpack_require__.C(__rspack_chunk_2);
|
|
219
|
+
import * as __rspack_chunk_3 from '../794.js';
|
|
220
|
+
__webpack_require__.C(__rspack_chunk_3);
|
|
221
|
+
import * as __rspack_chunk_4 from '../677.js';
|
|
222
|
+
__webpack_require__.C(__rspack_chunk_4);
|
|
223
|
+
import * as __rspack_chunk_5 from './index.js';
|
|
224
|
+
__webpack_require__.C(__rspack_chunk_5);
|
|
225
|
+
var __webpack_exports__ = __webpack_exec__(5460);var __webpack_exports__FlowAccessGuard = __webpack_exports__.C;
|
|
226
|
+
export { __webpack_exports__FlowAccessGuard as FlowAccessGuard };
|