@flusys/nestjs-entity-builder 9.1.0-rc.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 +103 -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 +481 -0
- package/controllers/entity-definition.controller.d.ts +40 -0
- package/controllers/field-definition.controller.d.ts +22 -0
- package/controllers/flow-api-key.controller.d.ts +14 -0
- package/controllers/flow-definition.controller.d.ts +45 -0
- package/controllers/flow-execution.controller.d.ts +21 -0
- package/controllers/flow-runtime.controller.d.ts +16 -0
- package/controllers/index.d.ts +6 -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 +85 -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-api-key.entity.d.ts +10 -0
- package/entities/flow-definition.entity.d.ts +20 -0
- package/entities/flow-execution.entity.d.ts +18 -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 +515 -0
- package/fesm/362.js +1074 -0
- package/fesm/489.js +1238 -0
- package/fesm/606.js +1655 -0
- package/fesm/719.js +3615 -0
- package/fesm/794.js +1050 -0
- package/fesm/996.js +6537 -0
- package/fesm/config/index.js +126 -0
- package/fesm/controllers/index.js +28 -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 +228 -0
- package/fesm/index.js +1125 -0
- package/fesm/interfaces/index.js +80 -0
- package/fesm/modules/index.js +642 -0
- package/fesm/rule-engine/index.js +21 -0
- package/fesm/runtime.js +85 -0
- package/fesm/services/index.js +495 -0
- package/flow-engine/flow-api-key.d.ts +10 -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 +19 -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 +120 -0
- package/flow-engine/flow.errors.d.ts +27 -0
- package/flow-engine/flow.types.d.ts +217 -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 +20 -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 +39 -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 +26 -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-api-key.service.d.ts +31 -0
- package/services/flow-definition.service.d.ts +49 -0
- package/services/flow-execution.service.d.ts +37 -0
- package/services/flow-executor.service.d.ts +40 -0
- package/services/flow-reference.provider.d.ts +13 -0
- package/services/flow-runtime.service.d.ts +29 -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 +27 -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
package/fesm/794.js
ADDED
|
@@ -0,0 +1,1050 @@
|
|
|
1
|
+
import * as __rspack_external__flusys_nestjs_shared_393d2cae from "@flusys/nestjs-shared";
|
|
2
|
+
import * as __rspack_external_typeorm from "typeorm";
|
|
3
|
+
export const __rspack_esm_id = 794;
|
|
4
|
+
export const __rspack_esm_ids = [794];
|
|
5
|
+
export const __webpack_modules__ = {
|
|
6
|
+
3189(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
7
|
+
/* import */ var _flusys_nestjs_shared__rspack_import_0 = __webpack_require__(3422);
|
|
8
|
+
/* import */ var typeorm__rspack_import_1 = __webpack_require__(7158);
|
|
9
|
+
/* import */ var _enums_entity_status_enum_js__rspack_import_2 = __webpack_require__(1313);
|
|
10
|
+
function _ts_decorate(decorators, target, key, desc) {
|
|
11
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
12
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") {
|
|
13
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
14
|
+
} else {
|
|
15
|
+
for(var i = decorators.length - 1; i >= 0; i--){
|
|
16
|
+
if (d = decorators[i]) {
|
|
17
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
22
|
+
}
|
|
23
|
+
function _ts_metadata(metadataKey, metadataValue) {
|
|
24
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") {
|
|
25
|
+
return Reflect.metadata(metadataKey, metadataValue);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
class EntityDefinition extends _flusys_nestjs_shared__rspack_import_0.Identity {
|
|
32
|
+
code;
|
|
33
|
+
label;
|
|
34
|
+
description;
|
|
35
|
+
tableName;
|
|
36
|
+
status;
|
|
37
|
+
schemaVersion;
|
|
38
|
+
isSoftDeleteEnabled;
|
|
39
|
+
isAuditEnabled;
|
|
40
|
+
uiConfig;
|
|
41
|
+
fields;
|
|
42
|
+
}
|
|
43
|
+
_ts_decorate([
|
|
44
|
+
(0,typeorm__rspack_import_1.Column)({
|
|
45
|
+
type: 'varchar',
|
|
46
|
+
length: 63
|
|
47
|
+
}),
|
|
48
|
+
_ts_metadata("design:type", String)
|
|
49
|
+
], EntityDefinition.prototype, "code", void 0);
|
|
50
|
+
_ts_decorate([
|
|
51
|
+
(0,typeorm__rspack_import_1.Column)({
|
|
52
|
+
type: 'varchar',
|
|
53
|
+
length: 255
|
|
54
|
+
}),
|
|
55
|
+
_ts_metadata("design:type", String)
|
|
56
|
+
], EntityDefinition.prototype, "label", void 0);
|
|
57
|
+
_ts_decorate([
|
|
58
|
+
(0,typeorm__rspack_import_1.Column)({
|
|
59
|
+
type: 'varchar',
|
|
60
|
+
length: 500,
|
|
61
|
+
nullable: true
|
|
62
|
+
}),
|
|
63
|
+
_ts_metadata("design:type", Object)
|
|
64
|
+
], EntityDefinition.prototype, "description", void 0);
|
|
65
|
+
_ts_decorate([
|
|
66
|
+
(0,typeorm__rspack_import_1.Column)({
|
|
67
|
+
type: 'varchar',
|
|
68
|
+
length: 63,
|
|
69
|
+
name: 'table_name'
|
|
70
|
+
}),
|
|
71
|
+
_ts_metadata("design:type", String)
|
|
72
|
+
], EntityDefinition.prototype, "tableName", void 0);
|
|
73
|
+
_ts_decorate([
|
|
74
|
+
(0,typeorm__rspack_import_1.Column)({
|
|
75
|
+
type: 'varchar',
|
|
76
|
+
length: 20,
|
|
77
|
+
default: _enums_entity_status_enum_js__rspack_import_2/* .EntityStatus.DRAFT */.c.DRAFT
|
|
78
|
+
}),
|
|
79
|
+
_ts_metadata("design:type", typeof _enums_entity_status_enum_js__rspack_import_2/* .EntityStatus */.c === "undefined" ? Object : _enums_entity_status_enum_js__rspack_import_2/* .EntityStatus */.c)
|
|
80
|
+
], EntityDefinition.prototype, "status", void 0);
|
|
81
|
+
_ts_decorate([
|
|
82
|
+
(0,typeorm__rspack_import_1.Column)({
|
|
83
|
+
type: 'int',
|
|
84
|
+
default: 1,
|
|
85
|
+
name: 'schema_version'
|
|
86
|
+
}),
|
|
87
|
+
_ts_metadata("design:type", Number)
|
|
88
|
+
], EntityDefinition.prototype, "schemaVersion", void 0);
|
|
89
|
+
_ts_decorate([
|
|
90
|
+
(0,typeorm__rspack_import_1.Column)({
|
|
91
|
+
type: 'boolean',
|
|
92
|
+
default: true,
|
|
93
|
+
name: 'is_soft_delete_enabled'
|
|
94
|
+
}),
|
|
95
|
+
_ts_metadata("design:type", Boolean)
|
|
96
|
+
], EntityDefinition.prototype, "isSoftDeleteEnabled", void 0);
|
|
97
|
+
_ts_decorate([
|
|
98
|
+
(0,typeorm__rspack_import_1.Column)({
|
|
99
|
+
type: 'boolean',
|
|
100
|
+
default: true,
|
|
101
|
+
name: 'is_audit_enabled'
|
|
102
|
+
}),
|
|
103
|
+
_ts_metadata("design:type", Boolean)
|
|
104
|
+
], EntityDefinition.prototype, "isAuditEnabled", void 0);
|
|
105
|
+
_ts_decorate([
|
|
106
|
+
(0,typeorm__rspack_import_1.Column)({
|
|
107
|
+
type: (0,_flusys_nestjs_shared__rspack_import_0.getJsonColumnType)(),
|
|
108
|
+
nullable: true,
|
|
109
|
+
name: 'ui_config'
|
|
110
|
+
}),
|
|
111
|
+
_ts_metadata("design:type", Object)
|
|
112
|
+
], EntityDefinition.prototype, "uiConfig", void 0);
|
|
113
|
+
_ts_decorate([
|
|
114
|
+
(0,typeorm__rspack_import_1.OneToMany)('FieldDefinition', 'entityDefinition'),
|
|
115
|
+
_ts_metadata("design:type", Array)
|
|
116
|
+
], EntityDefinition.prototype, "fields", void 0);
|
|
117
|
+
EntityDefinition = _ts_decorate([
|
|
118
|
+
(0,typeorm__rspack_import_1.Entity)({
|
|
119
|
+
name: 'eb_entity_definition'
|
|
120
|
+
}),
|
|
121
|
+
(0,typeorm__rspack_import_1.Index)([
|
|
122
|
+
'code'
|
|
123
|
+
], {
|
|
124
|
+
unique: true
|
|
125
|
+
})
|
|
126
|
+
], EntityDefinition);
|
|
127
|
+
|
|
128
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
129
|
+
f: () => (EntityDefinition)
|
|
130
|
+
});
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
},
|
|
134
|
+
2206(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
135
|
+
/* import */ var _flusys_nestjs_shared__rspack_import_0 = __webpack_require__(3422);
|
|
136
|
+
/* import */ var typeorm__rspack_import_1 = __webpack_require__(7158);
|
|
137
|
+
/* import */ var _enums_field_type_enum_js__rspack_import_2 = __webpack_require__(9614);
|
|
138
|
+
function _ts_decorate(decorators, target, key, desc) {
|
|
139
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
140
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") {
|
|
141
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
142
|
+
} else {
|
|
143
|
+
for(var i = decorators.length - 1; i >= 0; i--){
|
|
144
|
+
if (d = decorators[i]) {
|
|
145
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
150
|
+
}
|
|
151
|
+
function _ts_metadata(metadataKey, metadataValue) {
|
|
152
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") {
|
|
153
|
+
return Reflect.metadata(metadataKey, metadataValue);
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
class FieldDefinition extends _flusys_nestjs_shared__rspack_import_0.Identity {
|
|
160
|
+
entityDefinition;
|
|
161
|
+
entityDefinitionId;
|
|
162
|
+
code;
|
|
163
|
+
label;
|
|
164
|
+
fieldType;
|
|
165
|
+
dbType;
|
|
166
|
+
nullable;
|
|
167
|
+
unique;
|
|
168
|
+
isIndexed;
|
|
169
|
+
defaultValue;
|
|
170
|
+
validationRules;
|
|
171
|
+
selectOptions;
|
|
172
|
+
relationTargetEntityId;
|
|
173
|
+
order;
|
|
174
|
+
uiConfig;
|
|
175
|
+
isSearchable;
|
|
176
|
+
isSystemField;
|
|
177
|
+
deprecatedAt;
|
|
178
|
+
}
|
|
179
|
+
_ts_decorate([
|
|
180
|
+
(0,typeorm__rspack_import_1.ManyToOne)('EntityDefinition', 'fields', {
|
|
181
|
+
onDelete: 'CASCADE'
|
|
182
|
+
}),
|
|
183
|
+
(0,typeorm__rspack_import_1.JoinColumn)({
|
|
184
|
+
name: 'entity_definition_id'
|
|
185
|
+
}),
|
|
186
|
+
_ts_metadata("design:type", typeof EntityDefinition === "undefined" ? Object : EntityDefinition)
|
|
187
|
+
], FieldDefinition.prototype, "entityDefinition", void 0);
|
|
188
|
+
_ts_decorate([
|
|
189
|
+
(0,typeorm__rspack_import_1.Column)({
|
|
190
|
+
type: 'uuid',
|
|
191
|
+
name: 'entity_definition_id'
|
|
192
|
+
}),
|
|
193
|
+
_ts_metadata("design:type", String)
|
|
194
|
+
], FieldDefinition.prototype, "entityDefinitionId", void 0);
|
|
195
|
+
_ts_decorate([
|
|
196
|
+
(0,typeorm__rspack_import_1.Column)({
|
|
197
|
+
type: 'varchar',
|
|
198
|
+
length: 63
|
|
199
|
+
}),
|
|
200
|
+
_ts_metadata("design:type", String)
|
|
201
|
+
], FieldDefinition.prototype, "code", void 0);
|
|
202
|
+
_ts_decorate([
|
|
203
|
+
(0,typeorm__rspack_import_1.Column)({
|
|
204
|
+
type: 'varchar',
|
|
205
|
+
length: 255
|
|
206
|
+
}),
|
|
207
|
+
_ts_metadata("design:type", String)
|
|
208
|
+
], FieldDefinition.prototype, "label", void 0);
|
|
209
|
+
_ts_decorate([
|
|
210
|
+
(0,typeorm__rspack_import_1.Column)({
|
|
211
|
+
type: 'varchar',
|
|
212
|
+
length: 30,
|
|
213
|
+
name: 'field_type'
|
|
214
|
+
}),
|
|
215
|
+
_ts_metadata("design:type", typeof _enums_field_type_enum_js__rspack_import_2/* .FieldType */.P === "undefined" ? Object : _enums_field_type_enum_js__rspack_import_2/* .FieldType */.P)
|
|
216
|
+
], FieldDefinition.prototype, "fieldType", void 0);
|
|
217
|
+
_ts_decorate([
|
|
218
|
+
(0,typeorm__rspack_import_1.Column)({
|
|
219
|
+
type: 'varchar',
|
|
220
|
+
length: 50,
|
|
221
|
+
name: 'db_type'
|
|
222
|
+
}),
|
|
223
|
+
_ts_metadata("design:type", String)
|
|
224
|
+
], FieldDefinition.prototype, "dbType", void 0);
|
|
225
|
+
_ts_decorate([
|
|
226
|
+
(0,typeorm__rspack_import_1.Column)({
|
|
227
|
+
type: 'boolean',
|
|
228
|
+
default: true
|
|
229
|
+
}),
|
|
230
|
+
_ts_metadata("design:type", Boolean)
|
|
231
|
+
], FieldDefinition.prototype, "nullable", void 0);
|
|
232
|
+
_ts_decorate([
|
|
233
|
+
(0,typeorm__rspack_import_1.Column)({
|
|
234
|
+
type: 'boolean',
|
|
235
|
+
default: false
|
|
236
|
+
}),
|
|
237
|
+
_ts_metadata("design:type", Boolean)
|
|
238
|
+
], FieldDefinition.prototype, "unique", void 0);
|
|
239
|
+
_ts_decorate([
|
|
240
|
+
(0,typeorm__rspack_import_1.Column)({
|
|
241
|
+
type: 'boolean',
|
|
242
|
+
default: false,
|
|
243
|
+
name: 'is_indexed'
|
|
244
|
+
}),
|
|
245
|
+
_ts_metadata("design:type", Boolean)
|
|
246
|
+
], FieldDefinition.prototype, "isIndexed", void 0);
|
|
247
|
+
_ts_decorate([
|
|
248
|
+
(0,typeorm__rspack_import_1.Column)({
|
|
249
|
+
type: (0,_flusys_nestjs_shared__rspack_import_0.getJsonColumnType)(),
|
|
250
|
+
nullable: true,
|
|
251
|
+
name: 'default_value'
|
|
252
|
+
}),
|
|
253
|
+
_ts_metadata("design:type", Object)
|
|
254
|
+
], FieldDefinition.prototype, "defaultValue", void 0);
|
|
255
|
+
_ts_decorate([
|
|
256
|
+
(0,typeorm__rspack_import_1.Column)({
|
|
257
|
+
type: (0,_flusys_nestjs_shared__rspack_import_0.getJsonColumnType)(),
|
|
258
|
+
nullable: true,
|
|
259
|
+
name: 'validation_rules'
|
|
260
|
+
}),
|
|
261
|
+
_ts_metadata("design:type", Object)
|
|
262
|
+
], FieldDefinition.prototype, "validationRules", void 0);
|
|
263
|
+
_ts_decorate([
|
|
264
|
+
(0,typeorm__rspack_import_1.Column)({
|
|
265
|
+
type: (0,_flusys_nestjs_shared__rspack_import_0.getJsonColumnType)(),
|
|
266
|
+
nullable: true,
|
|
267
|
+
name: 'select_options'
|
|
268
|
+
}),
|
|
269
|
+
_ts_metadata("design:type", Object)
|
|
270
|
+
], FieldDefinition.prototype, "selectOptions", void 0);
|
|
271
|
+
_ts_decorate([
|
|
272
|
+
(0,typeorm__rspack_import_1.Column)({
|
|
273
|
+
type: 'uuid',
|
|
274
|
+
nullable: true,
|
|
275
|
+
name: 'relation_target_entity_id'
|
|
276
|
+
}),
|
|
277
|
+
_ts_metadata("design:type", Object)
|
|
278
|
+
], FieldDefinition.prototype, "relationTargetEntityId", void 0);
|
|
279
|
+
_ts_decorate([
|
|
280
|
+
(0,typeorm__rspack_import_1.Column)({
|
|
281
|
+
type: 'int',
|
|
282
|
+
default: 0
|
|
283
|
+
}),
|
|
284
|
+
_ts_metadata("design:type", Number)
|
|
285
|
+
], FieldDefinition.prototype, "order", void 0);
|
|
286
|
+
_ts_decorate([
|
|
287
|
+
(0,typeorm__rspack_import_1.Column)({
|
|
288
|
+
type: (0,_flusys_nestjs_shared__rspack_import_0.getJsonColumnType)(),
|
|
289
|
+
nullable: true,
|
|
290
|
+
name: 'ui_config'
|
|
291
|
+
}),
|
|
292
|
+
_ts_metadata("design:type", Object)
|
|
293
|
+
], FieldDefinition.prototype, "uiConfig", void 0);
|
|
294
|
+
_ts_decorate([
|
|
295
|
+
(0,typeorm__rspack_import_1.Column)({
|
|
296
|
+
type: 'boolean',
|
|
297
|
+
default: false,
|
|
298
|
+
name: 'is_searchable'
|
|
299
|
+
}),
|
|
300
|
+
_ts_metadata("design:type", Boolean)
|
|
301
|
+
], FieldDefinition.prototype, "isSearchable", void 0);
|
|
302
|
+
_ts_decorate([
|
|
303
|
+
(0,typeorm__rspack_import_1.Column)({
|
|
304
|
+
type: 'boolean',
|
|
305
|
+
default: false,
|
|
306
|
+
name: 'is_system_field'
|
|
307
|
+
}),
|
|
308
|
+
_ts_metadata("design:type", Boolean)
|
|
309
|
+
], FieldDefinition.prototype, "isSystemField", void 0);
|
|
310
|
+
_ts_decorate([
|
|
311
|
+
(0,typeorm__rspack_import_1.Column)({
|
|
312
|
+
type: 'timestamp',
|
|
313
|
+
nullable: true,
|
|
314
|
+
name: 'deprecated_at'
|
|
315
|
+
}),
|
|
316
|
+
_ts_metadata("design:type", Object)
|
|
317
|
+
], FieldDefinition.prototype, "deprecatedAt", void 0);
|
|
318
|
+
FieldDefinition = _ts_decorate([
|
|
319
|
+
(0,typeorm__rspack_import_1.Entity)({
|
|
320
|
+
name: 'eb_field_definition'
|
|
321
|
+
}),
|
|
322
|
+
(0,typeorm__rspack_import_1.Index)([
|
|
323
|
+
'entityDefinitionId',
|
|
324
|
+
'code'
|
|
325
|
+
], {
|
|
326
|
+
unique: true
|
|
327
|
+
})
|
|
328
|
+
], FieldDefinition);
|
|
329
|
+
|
|
330
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
331
|
+
c: () => (FieldDefinition)
|
|
332
|
+
});
|
|
333
|
+
|
|
334
|
+
|
|
335
|
+
},
|
|
336
|
+
201(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
337
|
+
/* import */ var _flusys_nestjs_shared__rspack_import_0 = __webpack_require__(3422);
|
|
338
|
+
/* import */ var typeorm__rspack_import_1 = __webpack_require__(7158);
|
|
339
|
+
function _ts_decorate(decorators, target, key, desc) {
|
|
340
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
341
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") {
|
|
342
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
343
|
+
} else {
|
|
344
|
+
for(var i = decorators.length - 1; i >= 0; i--){
|
|
345
|
+
if (d = decorators[i]) {
|
|
346
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
351
|
+
}
|
|
352
|
+
function _ts_metadata(metadataKey, metadataValue) {
|
|
353
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") {
|
|
354
|
+
return Reflect.metadata(metadataKey, metadataValue);
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
|
|
359
|
+
class FlowApiKey extends _flusys_nestjs_shared__rspack_import_0.Identity {
|
|
360
|
+
flowId;
|
|
361
|
+
name;
|
|
362
|
+
/** First characters of the key, to find it and to recognise it in the UI. */ keyPrefix;
|
|
363
|
+
keyHash;
|
|
364
|
+
isActive;
|
|
365
|
+
expiresAt;
|
|
366
|
+
lastUsedAt;
|
|
367
|
+
}
|
|
368
|
+
_ts_decorate([
|
|
369
|
+
(0,typeorm__rspack_import_1.Column)({
|
|
370
|
+
type: 'uuid',
|
|
371
|
+
name: 'flow_id'
|
|
372
|
+
}),
|
|
373
|
+
_ts_metadata("design:type", String)
|
|
374
|
+
], FlowApiKey.prototype, "flowId", void 0);
|
|
375
|
+
_ts_decorate([
|
|
376
|
+
(0,typeorm__rspack_import_1.Column)({
|
|
377
|
+
type: 'varchar',
|
|
378
|
+
length: 100
|
|
379
|
+
}),
|
|
380
|
+
_ts_metadata("design:type", String)
|
|
381
|
+
], FlowApiKey.prototype, "name", void 0);
|
|
382
|
+
_ts_decorate([
|
|
383
|
+
(0,typeorm__rspack_import_1.Column)({
|
|
384
|
+
type: 'varchar',
|
|
385
|
+
length: 16,
|
|
386
|
+
name: 'key_prefix'
|
|
387
|
+
}),
|
|
388
|
+
_ts_metadata("design:type", String)
|
|
389
|
+
], FlowApiKey.prototype, "keyPrefix", void 0);
|
|
390
|
+
_ts_decorate([
|
|
391
|
+
(0,typeorm__rspack_import_1.Column)({
|
|
392
|
+
type: 'varchar',
|
|
393
|
+
length: 64,
|
|
394
|
+
name: 'key_hash',
|
|
395
|
+
select: false
|
|
396
|
+
}),
|
|
397
|
+
_ts_metadata("design:type", String)
|
|
398
|
+
], FlowApiKey.prototype, "keyHash", void 0);
|
|
399
|
+
_ts_decorate([
|
|
400
|
+
(0,typeorm__rspack_import_1.Column)({
|
|
401
|
+
type: 'boolean',
|
|
402
|
+
default: true,
|
|
403
|
+
name: 'is_active'
|
|
404
|
+
}),
|
|
405
|
+
_ts_metadata("design:type", Boolean)
|
|
406
|
+
], FlowApiKey.prototype, "isActive", void 0);
|
|
407
|
+
_ts_decorate([
|
|
408
|
+
(0,typeorm__rspack_import_1.Column)({
|
|
409
|
+
type: 'timestamp',
|
|
410
|
+
nullable: true,
|
|
411
|
+
name: 'expires_at'
|
|
412
|
+
}),
|
|
413
|
+
_ts_metadata("design:type", Object)
|
|
414
|
+
], FlowApiKey.prototype, "expiresAt", void 0);
|
|
415
|
+
_ts_decorate([
|
|
416
|
+
(0,typeorm__rspack_import_1.Column)({
|
|
417
|
+
type: 'timestamp',
|
|
418
|
+
nullable: true,
|
|
419
|
+
name: 'last_used_at'
|
|
420
|
+
}),
|
|
421
|
+
_ts_metadata("design:type", Object)
|
|
422
|
+
], FlowApiKey.prototype, "lastUsedAt", void 0);
|
|
423
|
+
FlowApiKey = _ts_decorate([
|
|
424
|
+
(0,typeorm__rspack_import_1.Entity)({
|
|
425
|
+
name: 'eb_flow_api_key'
|
|
426
|
+
}),
|
|
427
|
+
(0,typeorm__rspack_import_1.Index)([
|
|
428
|
+
'flowId'
|
|
429
|
+
]),
|
|
430
|
+
(0,typeorm__rspack_import_1.Index)([
|
|
431
|
+
'keyPrefix'
|
|
432
|
+
])
|
|
433
|
+
], FlowApiKey);
|
|
434
|
+
|
|
435
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
436
|
+
S: () => (FlowApiKey)
|
|
437
|
+
});
|
|
438
|
+
|
|
439
|
+
|
|
440
|
+
},
|
|
441
|
+
3770(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
442
|
+
/* import */ var _flusys_nestjs_shared__rspack_import_0 = __webpack_require__(3422);
|
|
443
|
+
/* import */ var typeorm__rspack_import_1 = __webpack_require__(7158);
|
|
444
|
+
function _ts_decorate(decorators, target, key, desc) {
|
|
445
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
446
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") {
|
|
447
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
448
|
+
} else {
|
|
449
|
+
for(var i = decorators.length - 1; i >= 0; i--){
|
|
450
|
+
if (d = decorators[i]) {
|
|
451
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
456
|
+
}
|
|
457
|
+
function _ts_metadata(metadataKey, metadataValue) {
|
|
458
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") {
|
|
459
|
+
return Reflect.metadata(metadataKey, metadataValue);
|
|
460
|
+
}
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
|
|
464
|
+
class FlowDefinition extends _flusys_nestjs_shared__rspack_import_0.Identity {
|
|
465
|
+
name;
|
|
466
|
+
/** URL segment: POST api-flows/<slug>. */ slug;
|
|
467
|
+
description;
|
|
468
|
+
isActive;
|
|
469
|
+
authMode;
|
|
470
|
+
/** authMode `permission`: the permission a caller needs. Defaults to `entity_builder.flow.<slug>.execute`. */ permissionCode;
|
|
471
|
+
runAs;
|
|
472
|
+
/** Entity writes of one run commit or roll back together. */ isTransactional;
|
|
473
|
+
timeoutMs;
|
|
474
|
+
/** Per caller IP, per minute; 0 = unlimited. */ rateLimitPerMinute;
|
|
475
|
+
/** How many execution logs to keep for this flow. */ retainExecutions;
|
|
476
|
+
bodyType;
|
|
477
|
+
inputSchema;
|
|
478
|
+
nodes;
|
|
479
|
+
edges;
|
|
480
|
+
/** Bumped on every change. */ version;
|
|
481
|
+
}
|
|
482
|
+
_ts_decorate([
|
|
483
|
+
(0,typeorm__rspack_import_1.Column)({
|
|
484
|
+
type: 'varchar',
|
|
485
|
+
length: 255
|
|
486
|
+
}),
|
|
487
|
+
_ts_metadata("design:type", String)
|
|
488
|
+
], FlowDefinition.prototype, "name", void 0);
|
|
489
|
+
_ts_decorate([
|
|
490
|
+
(0,typeorm__rspack_import_1.Column)({
|
|
491
|
+
type: 'varchar',
|
|
492
|
+
length: 63
|
|
493
|
+
}),
|
|
494
|
+
_ts_metadata("design:type", String)
|
|
495
|
+
], FlowDefinition.prototype, "slug", void 0);
|
|
496
|
+
_ts_decorate([
|
|
497
|
+
(0,typeorm__rspack_import_1.Column)({
|
|
498
|
+
type: 'varchar',
|
|
499
|
+
length: 500,
|
|
500
|
+
nullable: true
|
|
501
|
+
}),
|
|
502
|
+
_ts_metadata("design:type", Object)
|
|
503
|
+
], FlowDefinition.prototype, "description", void 0);
|
|
504
|
+
_ts_decorate([
|
|
505
|
+
(0,typeorm__rspack_import_1.Column)({
|
|
506
|
+
type: 'boolean',
|
|
507
|
+
default: true,
|
|
508
|
+
name: 'is_active'
|
|
509
|
+
}),
|
|
510
|
+
_ts_metadata("design:type", Boolean)
|
|
511
|
+
], FlowDefinition.prototype, "isActive", void 0);
|
|
512
|
+
_ts_decorate([
|
|
513
|
+
(0,typeorm__rspack_import_1.Column)({
|
|
514
|
+
type: 'varchar',
|
|
515
|
+
length: 20,
|
|
516
|
+
name: 'auth_mode',
|
|
517
|
+
default: 'jwt'
|
|
518
|
+
}),
|
|
519
|
+
_ts_metadata("design:type", typeof FlowAuthMode === "undefined" ? Object : FlowAuthMode)
|
|
520
|
+
], FlowDefinition.prototype, "authMode", void 0);
|
|
521
|
+
_ts_decorate([
|
|
522
|
+
(0,typeorm__rspack_import_1.Column)({
|
|
523
|
+
type: 'varchar',
|
|
524
|
+
length: 255,
|
|
525
|
+
name: 'permission_code',
|
|
526
|
+
nullable: true
|
|
527
|
+
}),
|
|
528
|
+
_ts_metadata("design:type", Object)
|
|
529
|
+
], FlowDefinition.prototype, "permissionCode", void 0);
|
|
530
|
+
_ts_decorate([
|
|
531
|
+
(0,typeorm__rspack_import_1.Column)({
|
|
532
|
+
type: 'varchar',
|
|
533
|
+
length: 10,
|
|
534
|
+
name: 'run_as',
|
|
535
|
+
default: 'caller'
|
|
536
|
+
}),
|
|
537
|
+
_ts_metadata("design:type", typeof FlowRunAs === "undefined" ? Object : FlowRunAs)
|
|
538
|
+
], FlowDefinition.prototype, "runAs", void 0);
|
|
539
|
+
_ts_decorate([
|
|
540
|
+
(0,typeorm__rspack_import_1.Column)({
|
|
541
|
+
type: 'boolean',
|
|
542
|
+
default: false,
|
|
543
|
+
name: 'is_transactional'
|
|
544
|
+
}),
|
|
545
|
+
_ts_metadata("design:type", Boolean)
|
|
546
|
+
], FlowDefinition.prototype, "isTransactional", void 0);
|
|
547
|
+
_ts_decorate([
|
|
548
|
+
(0,typeorm__rspack_import_1.Column)({
|
|
549
|
+
type: 'int',
|
|
550
|
+
default: 30000,
|
|
551
|
+
name: 'timeout_ms'
|
|
552
|
+
}),
|
|
553
|
+
_ts_metadata("design:type", Number)
|
|
554
|
+
], FlowDefinition.prototype, "timeoutMs", void 0);
|
|
555
|
+
_ts_decorate([
|
|
556
|
+
(0,typeorm__rspack_import_1.Column)({
|
|
557
|
+
type: 'int',
|
|
558
|
+
default: 60,
|
|
559
|
+
name: 'rate_limit_per_minute'
|
|
560
|
+
}),
|
|
561
|
+
_ts_metadata("design:type", Number)
|
|
562
|
+
], FlowDefinition.prototype, "rateLimitPerMinute", void 0);
|
|
563
|
+
_ts_decorate([
|
|
564
|
+
(0,typeorm__rspack_import_1.Column)({
|
|
565
|
+
type: 'int',
|
|
566
|
+
default: 200,
|
|
567
|
+
name: 'retain_executions'
|
|
568
|
+
}),
|
|
569
|
+
_ts_metadata("design:type", Number)
|
|
570
|
+
], FlowDefinition.prototype, "retainExecutions", void 0);
|
|
571
|
+
_ts_decorate([
|
|
572
|
+
(0,typeorm__rspack_import_1.Column)({
|
|
573
|
+
type: 'varchar',
|
|
574
|
+
length: 10,
|
|
575
|
+
name: 'body_type',
|
|
576
|
+
default: 'object'
|
|
577
|
+
}),
|
|
578
|
+
_ts_metadata("design:type", typeof FlowBodyType === "undefined" ? Object : FlowBodyType)
|
|
579
|
+
], FlowDefinition.prototype, "bodyType", void 0);
|
|
580
|
+
_ts_decorate([
|
|
581
|
+
(0,typeorm__rspack_import_1.Column)({
|
|
582
|
+
type: (0,_flusys_nestjs_shared__rspack_import_0.getJsonColumnType)(),
|
|
583
|
+
name: 'input_schema'
|
|
584
|
+
}),
|
|
585
|
+
_ts_metadata("design:type", Array)
|
|
586
|
+
], FlowDefinition.prototype, "inputSchema", void 0);
|
|
587
|
+
_ts_decorate([
|
|
588
|
+
(0,typeorm__rspack_import_1.Column)({
|
|
589
|
+
type: (0,_flusys_nestjs_shared__rspack_import_0.getJsonColumnType)()
|
|
590
|
+
}),
|
|
591
|
+
_ts_metadata("design:type", Array)
|
|
592
|
+
], FlowDefinition.prototype, "nodes", void 0);
|
|
593
|
+
_ts_decorate([
|
|
594
|
+
(0,typeorm__rspack_import_1.Column)({
|
|
595
|
+
type: (0,_flusys_nestjs_shared__rspack_import_0.getJsonColumnType)()
|
|
596
|
+
}),
|
|
597
|
+
_ts_metadata("design:type", Array)
|
|
598
|
+
], FlowDefinition.prototype, "edges", void 0);
|
|
599
|
+
_ts_decorate([
|
|
600
|
+
(0,typeorm__rspack_import_1.Column)({
|
|
601
|
+
type: 'int',
|
|
602
|
+
default: 1
|
|
603
|
+
}),
|
|
604
|
+
_ts_metadata("design:type", Number)
|
|
605
|
+
], FlowDefinition.prototype, "version", void 0);
|
|
606
|
+
FlowDefinition = _ts_decorate([
|
|
607
|
+
(0,typeorm__rspack_import_1.Entity)({
|
|
608
|
+
name: 'eb_flow_definition'
|
|
609
|
+
}),
|
|
610
|
+
(0,typeorm__rspack_import_1.Index)([
|
|
611
|
+
'slug'
|
|
612
|
+
], {
|
|
613
|
+
unique: true
|
|
614
|
+
})
|
|
615
|
+
], FlowDefinition);
|
|
616
|
+
|
|
617
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
618
|
+
G: () => (FlowDefinition)
|
|
619
|
+
});
|
|
620
|
+
|
|
621
|
+
|
|
622
|
+
},
|
|
623
|
+
9641(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
624
|
+
/* import */ var _flusys_nestjs_shared__rspack_import_0 = __webpack_require__(3422);
|
|
625
|
+
/* import */ var typeorm__rspack_import_1 = __webpack_require__(7158);
|
|
626
|
+
function _ts_decorate(decorators, target, key, desc) {
|
|
627
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
628
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") {
|
|
629
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
630
|
+
} else {
|
|
631
|
+
for(var i = decorators.length - 1; i >= 0; i--){
|
|
632
|
+
if (d = decorators[i]) {
|
|
633
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
634
|
+
}
|
|
635
|
+
}
|
|
636
|
+
}
|
|
637
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
638
|
+
}
|
|
639
|
+
function _ts_metadata(metadataKey, metadataValue) {
|
|
640
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") {
|
|
641
|
+
return Reflect.metadata(metadataKey, metadataValue);
|
|
642
|
+
}
|
|
643
|
+
}
|
|
644
|
+
|
|
645
|
+
|
|
646
|
+
class FlowExecution extends _flusys_nestjs_shared__rspack_import_0.Identity {
|
|
647
|
+
flowId;
|
|
648
|
+
flowSlug;
|
|
649
|
+
/** success | failed | rejected (the caller was turned away: invalid input, failed validation, no permission). */ status;
|
|
650
|
+
/** webhook | test */ trigger;
|
|
651
|
+
/** live | dry_run */ mode;
|
|
652
|
+
statusCode;
|
|
653
|
+
input;
|
|
654
|
+
output;
|
|
655
|
+
error;
|
|
656
|
+
trace;
|
|
657
|
+
durationMs;
|
|
658
|
+
startedAt;
|
|
659
|
+
actorId;
|
|
660
|
+
callerIp;
|
|
661
|
+
}
|
|
662
|
+
_ts_decorate([
|
|
663
|
+
(0,typeorm__rspack_import_1.Column)({
|
|
664
|
+
type: 'uuid',
|
|
665
|
+
name: 'flow_id',
|
|
666
|
+
nullable: true
|
|
667
|
+
}),
|
|
668
|
+
_ts_metadata("design:type", Object)
|
|
669
|
+
], FlowExecution.prototype, "flowId", void 0);
|
|
670
|
+
_ts_decorate([
|
|
671
|
+
(0,typeorm__rspack_import_1.Column)({
|
|
672
|
+
type: 'varchar',
|
|
673
|
+
length: 63,
|
|
674
|
+
name: 'flow_slug'
|
|
675
|
+
}),
|
|
676
|
+
_ts_metadata("design:type", String)
|
|
677
|
+
], FlowExecution.prototype, "flowSlug", void 0);
|
|
678
|
+
_ts_decorate([
|
|
679
|
+
(0,typeorm__rspack_import_1.Column)({
|
|
680
|
+
type: 'varchar',
|
|
681
|
+
length: 12
|
|
682
|
+
}),
|
|
683
|
+
_ts_metadata("design:type", String)
|
|
684
|
+
], FlowExecution.prototype, "status", void 0);
|
|
685
|
+
_ts_decorate([
|
|
686
|
+
(0,typeorm__rspack_import_1.Column)({
|
|
687
|
+
type: 'varchar',
|
|
688
|
+
length: 12
|
|
689
|
+
}),
|
|
690
|
+
_ts_metadata("design:type", String)
|
|
691
|
+
], FlowExecution.prototype, "trigger", void 0);
|
|
692
|
+
_ts_decorate([
|
|
693
|
+
(0,typeorm__rspack_import_1.Column)({
|
|
694
|
+
type: 'varchar',
|
|
695
|
+
length: 10
|
|
696
|
+
}),
|
|
697
|
+
_ts_metadata("design:type", String)
|
|
698
|
+
], FlowExecution.prototype, "mode", void 0);
|
|
699
|
+
_ts_decorate([
|
|
700
|
+
(0,typeorm__rspack_import_1.Column)({
|
|
701
|
+
type: 'int',
|
|
702
|
+
name: 'status_code'
|
|
703
|
+
}),
|
|
704
|
+
_ts_metadata("design:type", Number)
|
|
705
|
+
], FlowExecution.prototype, "statusCode", void 0);
|
|
706
|
+
_ts_decorate([
|
|
707
|
+
(0,typeorm__rspack_import_1.Column)({
|
|
708
|
+
type: (0,_flusys_nestjs_shared__rspack_import_0.getJsonColumnType)(),
|
|
709
|
+
nullable: true
|
|
710
|
+
}),
|
|
711
|
+
_ts_metadata("design:type", Object)
|
|
712
|
+
], FlowExecution.prototype, "input", void 0);
|
|
713
|
+
_ts_decorate([
|
|
714
|
+
(0,typeorm__rspack_import_1.Column)({
|
|
715
|
+
type: 'text',
|
|
716
|
+
nullable: true
|
|
717
|
+
}),
|
|
718
|
+
_ts_metadata("design:type", Object)
|
|
719
|
+
], FlowExecution.prototype, "output", void 0);
|
|
720
|
+
_ts_decorate([
|
|
721
|
+
(0,typeorm__rspack_import_1.Column)({
|
|
722
|
+
type: 'text',
|
|
723
|
+
nullable: true
|
|
724
|
+
}),
|
|
725
|
+
_ts_metadata("design:type", Object)
|
|
726
|
+
], FlowExecution.prototype, "error", void 0);
|
|
727
|
+
_ts_decorate([
|
|
728
|
+
(0,typeorm__rspack_import_1.Column)({
|
|
729
|
+
type: (0,_flusys_nestjs_shared__rspack_import_0.getJsonColumnType)(),
|
|
730
|
+
nullable: true
|
|
731
|
+
}),
|
|
732
|
+
_ts_metadata("design:type", Object)
|
|
733
|
+
], FlowExecution.prototype, "trace", void 0);
|
|
734
|
+
_ts_decorate([
|
|
735
|
+
(0,typeorm__rspack_import_1.Column)({
|
|
736
|
+
type: 'int',
|
|
737
|
+
name: 'duration_ms'
|
|
738
|
+
}),
|
|
739
|
+
_ts_metadata("design:type", Number)
|
|
740
|
+
], FlowExecution.prototype, "durationMs", void 0);
|
|
741
|
+
_ts_decorate([
|
|
742
|
+
(0,typeorm__rspack_import_1.Column)({
|
|
743
|
+
type: 'timestamp',
|
|
744
|
+
name: 'started_at'
|
|
745
|
+
}),
|
|
746
|
+
_ts_metadata("design:type", typeof Date === "undefined" ? Object : Date)
|
|
747
|
+
], FlowExecution.prototype, "startedAt", void 0);
|
|
748
|
+
_ts_decorate([
|
|
749
|
+
(0,typeorm__rspack_import_1.Column)({
|
|
750
|
+
type: 'uuid',
|
|
751
|
+
name: 'actor_id',
|
|
752
|
+
nullable: true
|
|
753
|
+
}),
|
|
754
|
+
_ts_metadata("design:type", Object)
|
|
755
|
+
], FlowExecution.prototype, "actorId", void 0);
|
|
756
|
+
_ts_decorate([
|
|
757
|
+
(0,typeorm__rspack_import_1.Column)({
|
|
758
|
+
type: 'varchar',
|
|
759
|
+
length: 64,
|
|
760
|
+
name: 'caller_ip',
|
|
761
|
+
nullable: true
|
|
762
|
+
}),
|
|
763
|
+
_ts_metadata("design:type", Object)
|
|
764
|
+
], FlowExecution.prototype, "callerIp", void 0);
|
|
765
|
+
FlowExecution = _ts_decorate([
|
|
766
|
+
(0,typeorm__rspack_import_1.Entity)({
|
|
767
|
+
name: 'eb_flow_execution'
|
|
768
|
+
}),
|
|
769
|
+
(0,typeorm__rspack_import_1.Index)([
|
|
770
|
+
'flowId',
|
|
771
|
+
'startedAt'
|
|
772
|
+
])
|
|
773
|
+
], FlowExecution);
|
|
774
|
+
|
|
775
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
776
|
+
j: () => (FlowExecution)
|
|
777
|
+
});
|
|
778
|
+
|
|
779
|
+
|
|
780
|
+
},
|
|
781
|
+
665(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
782
|
+
/* import */ var _entity_definition_entity_js__rspack_import_0 = __webpack_require__(3189);
|
|
783
|
+
/* import */ var _field_definition_entity_js__rspack_import_1 = __webpack_require__(2206);
|
|
784
|
+
/* import */ var _schema_change_log_entity_js__rspack_import_2 = __webpack_require__(875);
|
|
785
|
+
/* import */ var _flow_definition_entity_js__rspack_import_3 = __webpack_require__(3770);
|
|
786
|
+
/* import */ var _flow_api_key_entity_js__rspack_import_4 = __webpack_require__(201);
|
|
787
|
+
/* import */ var _flow_execution_entity_js__rspack_import_5 = __webpack_require__(9641);
|
|
788
|
+
// Every entity builder table is tenant-wide: definitions, flows and their runs are shared by all
|
|
789
|
+
// companies, and records carry only the fields the entity designer defines.
|
|
790
|
+
|
|
791
|
+
|
|
792
|
+
|
|
793
|
+
|
|
794
|
+
|
|
795
|
+
|
|
796
|
+
|
|
797
|
+
|
|
798
|
+
|
|
799
|
+
|
|
800
|
+
|
|
801
|
+
|
|
802
|
+
const EntityBuilderEntities = [
|
|
803
|
+
_entity_definition_entity_js__rspack_import_0/* .EntityDefinition */.f,
|
|
804
|
+
_field_definition_entity_js__rspack_import_1/* .FieldDefinition */.c,
|
|
805
|
+
_schema_change_log_entity_js__rspack_import_2/* .SchemaChangeLog */.W,
|
|
806
|
+
_flow_definition_entity_js__rspack_import_3/* .FlowDefinition */.G,
|
|
807
|
+
_flow_api_key_entity_js__rspack_import_4/* .FlowApiKey */.S,
|
|
808
|
+
_flow_execution_entity_js__rspack_import_5/* .FlowExecution */.j
|
|
809
|
+
];
|
|
810
|
+
/** A copy on every call: a DataSource's entities array grows with runtime schemas and must never be shared. */ function getEntityBuilderEntities() {
|
|
811
|
+
return [
|
|
812
|
+
...EntityBuilderEntities
|
|
813
|
+
];
|
|
814
|
+
}
|
|
815
|
+
|
|
816
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
817
|
+
G: () => (/* reexport safe */ _flow_definition_entity_js__rspack_import_3.G),
|
|
818
|
+
Sf: () => (/* reexport safe */ _flow_api_key_entity_js__rspack_import_4.S),
|
|
819
|
+
We: () => (/* reexport safe */ _schema_change_log_entity_js__rspack_import_2.W),
|
|
820
|
+
ac: () => (getEntityBuilderEntities),
|
|
821
|
+
ck: () => (/* reexport safe */ _field_definition_entity_js__rspack_import_1.c),
|
|
822
|
+
f6: () => (/* reexport safe */ _entity_definition_entity_js__rspack_import_0.f),
|
|
823
|
+
j5: () => (/* reexport safe */ _flow_execution_entity_js__rspack_import_5.j)
|
|
824
|
+
}, {
|
|
825
|
+
Ui: EntityBuilderEntities
|
|
826
|
+
});
|
|
827
|
+
|
|
828
|
+
|
|
829
|
+
},
|
|
830
|
+
875(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
831
|
+
/* import */ var _flusys_nestjs_shared__rspack_import_0 = __webpack_require__(3422);
|
|
832
|
+
/* import */ var typeorm__rspack_import_1 = __webpack_require__(7158);
|
|
833
|
+
/* import */ var _enums_ddl_operation_enum_js__rspack_import_2 = __webpack_require__(9949);
|
|
834
|
+
function _ts_decorate(decorators, target, key, desc) {
|
|
835
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
836
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") {
|
|
837
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
838
|
+
} else {
|
|
839
|
+
for(var i = decorators.length - 1; i >= 0; i--){
|
|
840
|
+
if (d = decorators[i]) {
|
|
841
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
842
|
+
}
|
|
843
|
+
}
|
|
844
|
+
}
|
|
845
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
846
|
+
}
|
|
847
|
+
function _ts_metadata(metadataKey, metadataValue) {
|
|
848
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") {
|
|
849
|
+
return Reflect.metadata(metadataKey, metadataValue);
|
|
850
|
+
}
|
|
851
|
+
}
|
|
852
|
+
|
|
853
|
+
|
|
854
|
+
|
|
855
|
+
class SchemaChangeLog extends _flusys_nestjs_shared__rspack_import_0.Identity {
|
|
856
|
+
/** Null only for a failed attempt to create an entity that never got an id. */ entityDefinitionId;
|
|
857
|
+
entityCode;
|
|
858
|
+
operation;
|
|
859
|
+
tableName;
|
|
860
|
+
fieldDefinitionId;
|
|
861
|
+
diff;
|
|
862
|
+
generatedSql;
|
|
863
|
+
/** The reverse of `generatedSql` (TypeORM's down queries) - how to undo this change by hand. */ downSql;
|
|
864
|
+
status;
|
|
865
|
+
errorMessage;
|
|
866
|
+
performedById;
|
|
867
|
+
}
|
|
868
|
+
_ts_decorate([
|
|
869
|
+
(0,typeorm__rspack_import_1.Column)({
|
|
870
|
+
type: 'uuid',
|
|
871
|
+
name: 'entity_definition_id',
|
|
872
|
+
nullable: true
|
|
873
|
+
}),
|
|
874
|
+
_ts_metadata("design:type", Object)
|
|
875
|
+
], SchemaChangeLog.prototype, "entityDefinitionId", void 0);
|
|
876
|
+
_ts_decorate([
|
|
877
|
+
(0,typeorm__rspack_import_1.Column)({
|
|
878
|
+
type: 'varchar',
|
|
879
|
+
length: 63,
|
|
880
|
+
name: 'entity_code',
|
|
881
|
+
nullable: true
|
|
882
|
+
}),
|
|
883
|
+
_ts_metadata("design:type", Object)
|
|
884
|
+
], SchemaChangeLog.prototype, "entityCode", void 0);
|
|
885
|
+
_ts_decorate([
|
|
886
|
+
(0,typeorm__rspack_import_1.Column)({
|
|
887
|
+
type: 'varchar',
|
|
888
|
+
length: 30
|
|
889
|
+
}),
|
|
890
|
+
_ts_metadata("design:type", typeof _enums_ddl_operation_enum_js__rspack_import_2/* .DdlOperation */.i === "undefined" ? Object : _enums_ddl_operation_enum_js__rspack_import_2/* .DdlOperation */.i)
|
|
891
|
+
], SchemaChangeLog.prototype, "operation", void 0);
|
|
892
|
+
_ts_decorate([
|
|
893
|
+
(0,typeorm__rspack_import_1.Column)({
|
|
894
|
+
type: 'varchar',
|
|
895
|
+
length: 63,
|
|
896
|
+
name: 'table_name'
|
|
897
|
+
}),
|
|
898
|
+
_ts_metadata("design:type", String)
|
|
899
|
+
], SchemaChangeLog.prototype, "tableName", void 0);
|
|
900
|
+
_ts_decorate([
|
|
901
|
+
(0,typeorm__rspack_import_1.Column)({
|
|
902
|
+
type: 'uuid',
|
|
903
|
+
nullable: true,
|
|
904
|
+
name: 'field_definition_id'
|
|
905
|
+
}),
|
|
906
|
+
_ts_metadata("design:type", Object)
|
|
907
|
+
], SchemaChangeLog.prototype, "fieldDefinitionId", void 0);
|
|
908
|
+
_ts_decorate([
|
|
909
|
+
(0,typeorm__rspack_import_1.Column)({
|
|
910
|
+
type: (0,_flusys_nestjs_shared__rspack_import_0.getJsonColumnType)()
|
|
911
|
+
}),
|
|
912
|
+
_ts_metadata("design:type", typeof Record === "undefined" ? Object : Record)
|
|
913
|
+
], SchemaChangeLog.prototype, "diff", void 0);
|
|
914
|
+
_ts_decorate([
|
|
915
|
+
(0,typeorm__rspack_import_1.Column)({
|
|
916
|
+
type: (0,_flusys_nestjs_shared__rspack_import_0.getJsonColumnType)(),
|
|
917
|
+
name: 'generated_sql'
|
|
918
|
+
}),
|
|
919
|
+
_ts_metadata("design:type", Array)
|
|
920
|
+
], SchemaChangeLog.prototype, "generatedSql", void 0);
|
|
921
|
+
_ts_decorate([
|
|
922
|
+
(0,typeorm__rspack_import_1.Column)({
|
|
923
|
+
type: (0,_flusys_nestjs_shared__rspack_import_0.getJsonColumnType)(),
|
|
924
|
+
name: 'down_sql',
|
|
925
|
+
nullable: true
|
|
926
|
+
}),
|
|
927
|
+
_ts_metadata("design:type", Object)
|
|
928
|
+
], SchemaChangeLog.prototype, "downSql", void 0);
|
|
929
|
+
_ts_decorate([
|
|
930
|
+
(0,typeorm__rspack_import_1.Column)({
|
|
931
|
+
type: 'varchar',
|
|
932
|
+
length: 20,
|
|
933
|
+
default: 'SUCCESS'
|
|
934
|
+
}),
|
|
935
|
+
_ts_metadata("design:type", String)
|
|
936
|
+
], SchemaChangeLog.prototype, "status", void 0);
|
|
937
|
+
_ts_decorate([
|
|
938
|
+
(0,typeorm__rspack_import_1.Column)({
|
|
939
|
+
type: 'text',
|
|
940
|
+
nullable: true,
|
|
941
|
+
name: 'error_message'
|
|
942
|
+
}),
|
|
943
|
+
_ts_metadata("design:type", Object)
|
|
944
|
+
], SchemaChangeLog.prototype, "errorMessage", void 0);
|
|
945
|
+
_ts_decorate([
|
|
946
|
+
(0,typeorm__rspack_import_1.Column)({
|
|
947
|
+
type: 'uuid',
|
|
948
|
+
nullable: true,
|
|
949
|
+
name: 'performed_by_id'
|
|
950
|
+
}),
|
|
951
|
+
_ts_metadata("design:type", Object)
|
|
952
|
+
], SchemaChangeLog.prototype, "performedById", void 0);
|
|
953
|
+
SchemaChangeLog = _ts_decorate([
|
|
954
|
+
(0,typeorm__rspack_import_1.Entity)({
|
|
955
|
+
name: 'eb_schema_change_log'
|
|
956
|
+
}),
|
|
957
|
+
(0,typeorm__rspack_import_1.Index)([
|
|
958
|
+
'entityDefinitionId',
|
|
959
|
+
'createdAt'
|
|
960
|
+
])
|
|
961
|
+
], SchemaChangeLog);
|
|
962
|
+
|
|
963
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
964
|
+
W: () => (SchemaChangeLog)
|
|
965
|
+
});
|
|
966
|
+
|
|
967
|
+
|
|
968
|
+
},
|
|
969
|
+
9949(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
970
|
+
/** Structural operations recorded by SchemaChangeLog. */ var DdlOperation = /*#__PURE__*/ function(DdlOperation) {
|
|
971
|
+
DdlOperation["CREATE_TABLE"] = "CREATE_TABLE";
|
|
972
|
+
DdlOperation["ADD_COLUMN"] = "ADD_COLUMN";
|
|
973
|
+
DdlOperation["CREATE_INDEX"] = "CREATE_INDEX";
|
|
974
|
+
DdlOperation["MARK_DEPRECATED"] = "MARK_DEPRECATED";
|
|
975
|
+
DdlOperation["RESTORE_FIELD"] = "RESTORE_FIELD";
|
|
976
|
+
DdlOperation["ALTER_FIELD"] = "ALTER_FIELD";
|
|
977
|
+
DdlOperation["RENAME_FIELD"] = "RENAME_FIELD";
|
|
978
|
+
DdlOperation["DROP_COLUMN"] = "DROP_COLUMN";
|
|
979
|
+
DdlOperation["ALTER_ENTITY"] = "ALTER_ENTITY";
|
|
980
|
+
DdlOperation["DROP_TABLE"] = "DROP_TABLE";
|
|
981
|
+
DdlOperation["REPAIR"] = "REPAIR";
|
|
982
|
+
return DdlOperation;
|
|
983
|
+
}({});
|
|
984
|
+
|
|
985
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
986
|
+
i: () => (DdlOperation)
|
|
987
|
+
});
|
|
988
|
+
|
|
989
|
+
|
|
990
|
+
},
|
|
991
|
+
1313(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
992
|
+
/**
|
|
993
|
+
* Lifecycle status of an EntityDefinition.
|
|
994
|
+
* DRAFT - metadata created, table not yet materialized.
|
|
995
|
+
* ACTIVE - table exists; flows read and write its records.
|
|
996
|
+
* DEPRECATED - no new writes; physical table/data left intact.
|
|
997
|
+
*/ var EntityStatus = /*#__PURE__*/ function(EntityStatus) {
|
|
998
|
+
EntityStatus["DRAFT"] = "DRAFT";
|
|
999
|
+
EntityStatus["ACTIVE"] = "ACTIVE";
|
|
1000
|
+
EntityStatus["DEPRECATED"] = "DEPRECATED";
|
|
1001
|
+
return EntityStatus;
|
|
1002
|
+
}({});
|
|
1003
|
+
|
|
1004
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
1005
|
+
c: () => (EntityStatus)
|
|
1006
|
+
});
|
|
1007
|
+
|
|
1008
|
+
|
|
1009
|
+
},
|
|
1010
|
+
9614(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
1011
|
+
/**
|
|
1012
|
+
* Storable field types a FieldDefinition can declare.
|
|
1013
|
+
* Mapped to a driver-specific column type by SchemaDialectAdapterService.
|
|
1014
|
+
*/ var FieldType = /*#__PURE__*/ function(FieldType) {
|
|
1015
|
+
FieldType["TEXT"] = "TEXT";
|
|
1016
|
+
FieldType["LONG_TEXT"] = "LONG_TEXT";
|
|
1017
|
+
FieldType["INTEGER"] = "INTEGER";
|
|
1018
|
+
FieldType["DECIMAL"] = "DECIMAL";
|
|
1019
|
+
FieldType["BOOLEAN"] = "BOOLEAN";
|
|
1020
|
+
FieldType["DATE"] = "DATE";
|
|
1021
|
+
FieldType["DATETIME"] = "DATETIME";
|
|
1022
|
+
FieldType["EMAIL"] = "EMAIL";
|
|
1023
|
+
FieldType["SINGLE_SELECT"] = "SINGLE_SELECT";
|
|
1024
|
+
FieldType["MULTI_SELECT"] = "MULTI_SELECT";
|
|
1025
|
+
FieldType["RELATION"] = "RELATION";
|
|
1026
|
+
FieldType["JSON"] = "JSON";
|
|
1027
|
+
FieldType["FILE"] = "FILE";
|
|
1028
|
+
return FieldType;
|
|
1029
|
+
}({});
|
|
1030
|
+
|
|
1031
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
1032
|
+
P: () => (FieldType)
|
|
1033
|
+
});
|
|
1034
|
+
|
|
1035
|
+
|
|
1036
|
+
},
|
|
1037
|
+
3422(module) {
|
|
1038
|
+
|
|
1039
|
+
module.exports = __rspack_external__flusys_nestjs_shared_393d2cae;
|
|
1040
|
+
|
|
1041
|
+
|
|
1042
|
+
},
|
|
1043
|
+
7158(module) {
|
|
1044
|
+
|
|
1045
|
+
module.exports = __rspack_external_typeorm;
|
|
1046
|
+
|
|
1047
|
+
|
|
1048
|
+
},
|
|
1049
|
+
|
|
1050
|
+
};
|