@flusys/nestjs-entity-builder 9.1.0-rc.1 → 9.1.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 +52 -23
- package/config/entity-builder.constants.d.ts +2 -0
- package/config/message-keys.d.ts +102 -13
- package/controllers/definition-bundle.controller.d.ts +15 -0
- package/controllers/flow-definition.controller.d.ts +7 -1
- package/controllers/flow-runtime.controller.d.ts +16 -8
- package/controllers/index.d.ts +1 -1
- package/dtos/definition-bundle.dto.d.ts +57 -0
- package/dtos/flow.dto.d.ts +13 -20
- package/dtos/index.d.ts +1 -0
- package/entities/flow-definition.entity.d.ts +3 -9
- package/entities/flow-execution.entity.d.ts +3 -0
- package/entities/flow-version.entity.d.ts +10 -0
- package/entities/index.d.ts +3 -3
- package/fesm/21.js +105 -15
- package/fesm/458.js +695 -0
- package/fesm/{489.js → 582.js} +22 -30
- package/fesm/{996.js → 677.js} +1562 -1064
- package/fesm/794.js +135 -240
- package/fesm/{719.js → 870.js} +2065 -324
- package/fesm/{362.js → 897.js} +572 -8
- package/fesm/{606.js → 946.js} +621 -296
- package/fesm/config/index.js +15 -2
- package/fesm/controllers/index.js +9 -9
- package/fesm/docs/index.js +7 -4
- package/fesm/dtos/index.js +451 -256
- package/fesm/entities/index.js +58 -3
- package/fesm/guards/index.js +106 -22
- package/fesm/index.js +429 -937
- package/fesm/interfaces/index.js +19 -2
- package/fesm/modules/index.js +10 -627
- package/fesm/rule-engine/index.js +12 -3
- package/fesm/services/index.js +101 -29
- package/flow-engine/flow-api-key.d.ts +3 -7
- package/flow-engine/flow-graph.validator.d.ts +5 -4
- package/flow-engine/flow-permission-logic.d.ts +2 -0
- package/flow-engine/flow-run.types.d.ts +19 -9
- package/flow-engine/flow.types.d.ts +115 -11
- package/guards/designer-writable.interceptor.d.ts +12 -0
- package/guards/index.d.ts +1 -0
- package/interfaces/definition-bundle.interface.d.ts +111 -0
- package/interfaces/entity-builder-module.interface.d.ts +6 -0
- package/interfaces/flow-definition.interface.d.ts +13 -9
- package/interfaces/index.d.ts +1 -0
- package/package.json +5 -5
- package/rule-engine/rule-engine.service.d.ts +1 -0
- package/rule-engine/rule-permission.d.ts +3 -7
- package/services/definition-bundle.diff.d.ts +62 -0
- package/services/definition-bundle.file.d.ts +7 -0
- package/services/definition-bundle.service.d.ts +32 -0
- package/services/entity-builder-config.service.d.ts +2 -0
- package/services/entity-flow-scaffold.d.ts +4 -3
- package/services/flow-definition.service.d.ts +26 -12
- package/services/flow-execution.service.d.ts +7 -0
- package/services/flow-executor.service.d.ts +9 -8
- package/services/flow-runtime.service.d.ts +2 -1
- package/services/generic-entity.service.d.ts +1 -1
- package/services/index.d.ts +3 -1
- package/services/schema-evolution.service.d.ts +3 -1
- package/services/schema-sync.service.d.ts +6 -2
- package/controllers/flow-api-key.controller.d.ts +0 -14
- package/entities/flow-api-key.entity.d.ts +0 -10
- package/services/flow-api-key.service.d.ts +0 -31
package/fesm/794.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as __rspack_external__flusys_nestjs_shared_393d2cae from "@flusys/nestjs-shared";
|
|
2
|
-
import * as __rspack_external_typeorm from "typeorm";
|
|
3
2
|
export const __rspack_esm_id = 794;
|
|
4
3
|
export const __rspack_esm_ids = [794];
|
|
5
4
|
export const __webpack_modules__ = {
|
|
@@ -332,111 +331,6 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
332
331
|
});
|
|
333
332
|
|
|
334
333
|
|
|
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
334
|
},
|
|
441
335
|
3770(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
442
336
|
/* import */ var _flusys_nestjs_shared__rspack_import_0 = __webpack_require__(3422);
|
|
@@ -466,18 +360,11 @@ class FlowDefinition extends _flusys_nestjs_shared__rspack_import_0.Identity {
|
|
|
466
360
|
/** URL segment: POST api-flows/<slug>. */ slug;
|
|
467
361
|
description;
|
|
468
362
|
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
363
|
/** How many execution logs to keep for this flow. */ retainExecutions;
|
|
476
|
-
bodyType;
|
|
477
|
-
inputSchema;
|
|
478
364
|
nodes;
|
|
479
365
|
edges;
|
|
480
|
-
/**
|
|
366
|
+
/** The published version: 0 until the flow is first published (it cannot be called before), then bumped on every publish. */ version;
|
|
367
|
+
/** Saved, unpublished edits of a published flow; null when the flow is as published. */ draft;
|
|
481
368
|
}
|
|
482
369
|
_ts_decorate([
|
|
483
370
|
(0,typeorm__rspack_import_1.Column)({
|
|
@@ -509,57 +396,6 @@ _ts_decorate([
|
|
|
509
396
|
}),
|
|
510
397
|
_ts_metadata("design:type", Boolean)
|
|
511
398
|
], 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
399
|
_ts_decorate([
|
|
564
400
|
(0,typeorm__rspack_import_1.Column)({
|
|
565
401
|
type: 'int',
|
|
@@ -568,22 +404,6 @@ _ts_decorate([
|
|
|
568
404
|
}),
|
|
569
405
|
_ts_metadata("design:type", Number)
|
|
570
406
|
], 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
407
|
_ts_decorate([
|
|
588
408
|
(0,typeorm__rspack_import_1.Column)({
|
|
589
409
|
type: (0,_flusys_nestjs_shared__rspack_import_0.getJsonColumnType)()
|
|
@@ -603,6 +423,13 @@ _ts_decorate([
|
|
|
603
423
|
}),
|
|
604
424
|
_ts_metadata("design:type", Number)
|
|
605
425
|
], FlowDefinition.prototype, "version", void 0);
|
|
426
|
+
_ts_decorate([
|
|
427
|
+
(0,typeorm__rspack_import_1.Column)({
|
|
428
|
+
type: (0,_flusys_nestjs_shared__rspack_import_0.getJsonColumnType)(),
|
|
429
|
+
nullable: true
|
|
430
|
+
}),
|
|
431
|
+
_ts_metadata("design:type", Object)
|
|
432
|
+
], FlowDefinition.prototype, "draft", void 0);
|
|
606
433
|
FlowDefinition = _ts_decorate([
|
|
607
434
|
(0,typeorm__rspack_import_1.Entity)({
|
|
608
435
|
name: 'eb_flow_definition'
|
|
@@ -646,8 +473,11 @@ function _ts_metadata(metadataKey, metadataValue) {
|
|
|
646
473
|
class FlowExecution extends _flusys_nestjs_shared__rspack_import_0.Identity {
|
|
647
474
|
flowId;
|
|
648
475
|
flowSlug;
|
|
476
|
+
/** The published version that ran; null for a test run of the designer's draft. */ flowVersion;
|
|
649
477
|
/** success | failed | rejected (the caller was turned away: invalid input, failed validation, no permission). */ status;
|
|
650
478
|
/** webhook | test */ trigger;
|
|
479
|
+
/** The Request step the run came in through. */ endpointNodeId;
|
|
480
|
+
/** That step's path when the run happened; null for the flow's own URL. */ endpointPath;
|
|
651
481
|
/** live | dry_run */ mode;
|
|
652
482
|
statusCode;
|
|
653
483
|
input;
|
|
@@ -675,6 +505,14 @@ _ts_decorate([
|
|
|
675
505
|
}),
|
|
676
506
|
_ts_metadata("design:type", String)
|
|
677
507
|
], FlowExecution.prototype, "flowSlug", void 0);
|
|
508
|
+
_ts_decorate([
|
|
509
|
+
(0,typeorm__rspack_import_1.Column)({
|
|
510
|
+
type: 'int',
|
|
511
|
+
name: 'flow_version',
|
|
512
|
+
nullable: true
|
|
513
|
+
}),
|
|
514
|
+
_ts_metadata("design:type", Object)
|
|
515
|
+
], FlowExecution.prototype, "flowVersion", void 0);
|
|
678
516
|
_ts_decorate([
|
|
679
517
|
(0,typeorm__rspack_import_1.Column)({
|
|
680
518
|
type: 'varchar',
|
|
@@ -689,6 +527,24 @@ _ts_decorate([
|
|
|
689
527
|
}),
|
|
690
528
|
_ts_metadata("design:type", String)
|
|
691
529
|
], FlowExecution.prototype, "trigger", void 0);
|
|
530
|
+
_ts_decorate([
|
|
531
|
+
(0,typeorm__rspack_import_1.Column)({
|
|
532
|
+
type: 'varchar',
|
|
533
|
+
length: 40,
|
|
534
|
+
name: 'endpoint_node_id',
|
|
535
|
+
nullable: true
|
|
536
|
+
}),
|
|
537
|
+
_ts_metadata("design:type", Object)
|
|
538
|
+
], FlowExecution.prototype, "endpointNodeId", void 0);
|
|
539
|
+
_ts_decorate([
|
|
540
|
+
(0,typeorm__rspack_import_1.Column)({
|
|
541
|
+
type: 'varchar',
|
|
542
|
+
length: 63,
|
|
543
|
+
name: 'endpoint_path',
|
|
544
|
+
nullable: true
|
|
545
|
+
}),
|
|
546
|
+
_ts_metadata("design:type", Object)
|
|
547
|
+
], FlowExecution.prototype, "endpointPath", void 0);
|
|
692
548
|
_ts_decorate([
|
|
693
549
|
(0,typeorm__rspack_import_1.Column)({
|
|
694
550
|
type: 'varchar',
|
|
@@ -777,14 +633,105 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
777
633
|
});
|
|
778
634
|
|
|
779
635
|
|
|
636
|
+
},
|
|
637
|
+
2399(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
638
|
+
/* import */ var _flusys_nestjs_shared__rspack_import_0 = __webpack_require__(3422);
|
|
639
|
+
/* import */ var typeorm__rspack_import_1 = __webpack_require__(7158);
|
|
640
|
+
function _ts_decorate(decorators, target, key, desc) {
|
|
641
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
642
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") {
|
|
643
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
644
|
+
} else {
|
|
645
|
+
for(var i = decorators.length - 1; i >= 0; i--){
|
|
646
|
+
if (d = decorators[i]) {
|
|
647
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
648
|
+
}
|
|
649
|
+
}
|
|
650
|
+
}
|
|
651
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
652
|
+
}
|
|
653
|
+
function _ts_metadata(metadataKey, metadataValue) {
|
|
654
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") {
|
|
655
|
+
return Reflect.metadata(metadataKey, metadataValue);
|
|
656
|
+
}
|
|
657
|
+
}
|
|
658
|
+
|
|
659
|
+
|
|
660
|
+
class FlowVersion extends _flusys_nestjs_shared__rspack_import_0.Identity {
|
|
661
|
+
flowId;
|
|
662
|
+
version;
|
|
663
|
+
definition;
|
|
664
|
+
note;
|
|
665
|
+
publishedAt;
|
|
666
|
+
publishedById;
|
|
667
|
+
}
|
|
668
|
+
_ts_decorate([
|
|
669
|
+
(0,typeorm__rspack_import_1.Column)({
|
|
670
|
+
type: 'uuid',
|
|
671
|
+
name: 'flow_id'
|
|
672
|
+
}),
|
|
673
|
+
_ts_metadata("design:type", String)
|
|
674
|
+
], FlowVersion.prototype, "flowId", void 0);
|
|
675
|
+
_ts_decorate([
|
|
676
|
+
(0,typeorm__rspack_import_1.Column)({
|
|
677
|
+
type: 'int'
|
|
678
|
+
}),
|
|
679
|
+
_ts_metadata("design:type", Number)
|
|
680
|
+
], FlowVersion.prototype, "version", void 0);
|
|
681
|
+
_ts_decorate([
|
|
682
|
+
(0,typeorm__rspack_import_1.Column)({
|
|
683
|
+
type: (0,_flusys_nestjs_shared__rspack_import_0.getJsonColumnType)()
|
|
684
|
+
}),
|
|
685
|
+
_ts_metadata("design:type", typeof IFlowSnapshot === "undefined" ? Object : IFlowSnapshot)
|
|
686
|
+
], FlowVersion.prototype, "definition", void 0);
|
|
687
|
+
_ts_decorate([
|
|
688
|
+
(0,typeorm__rspack_import_1.Column)({
|
|
689
|
+
type: 'varchar',
|
|
690
|
+
length: 500,
|
|
691
|
+
nullable: true
|
|
692
|
+
}),
|
|
693
|
+
_ts_metadata("design:type", Object)
|
|
694
|
+
], FlowVersion.prototype, "note", void 0);
|
|
695
|
+
_ts_decorate([
|
|
696
|
+
(0,typeorm__rspack_import_1.Column)({
|
|
697
|
+
type: 'timestamp',
|
|
698
|
+
name: 'published_at'
|
|
699
|
+
}),
|
|
700
|
+
_ts_metadata("design:type", typeof Date === "undefined" ? Object : Date)
|
|
701
|
+
], FlowVersion.prototype, "publishedAt", void 0);
|
|
702
|
+
_ts_decorate([
|
|
703
|
+
(0,typeorm__rspack_import_1.Column)({
|
|
704
|
+
type: 'uuid',
|
|
705
|
+
name: 'published_by_id',
|
|
706
|
+
nullable: true
|
|
707
|
+
}),
|
|
708
|
+
_ts_metadata("design:type", Object)
|
|
709
|
+
], FlowVersion.prototype, "publishedById", void 0);
|
|
710
|
+
FlowVersion = _ts_decorate([
|
|
711
|
+
(0,typeorm__rspack_import_1.Entity)({
|
|
712
|
+
name: 'eb_flow_version'
|
|
713
|
+
}),
|
|
714
|
+
(0,typeorm__rspack_import_1.Index)([
|
|
715
|
+
'flowId',
|
|
716
|
+
'version'
|
|
717
|
+
], {
|
|
718
|
+
unique: true
|
|
719
|
+
})
|
|
720
|
+
], FlowVersion);
|
|
721
|
+
|
|
722
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
723
|
+
p: () => (FlowVersion)
|
|
724
|
+
});
|
|
725
|
+
|
|
726
|
+
|
|
780
727
|
},
|
|
781
728
|
665(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
782
729
|
/* import */ var _entity_definition_entity_js__rspack_import_0 = __webpack_require__(3189);
|
|
783
730
|
/* import */ var _field_definition_entity_js__rspack_import_1 = __webpack_require__(2206);
|
|
784
731
|
/* import */ var _schema_change_log_entity_js__rspack_import_2 = __webpack_require__(875);
|
|
785
732
|
/* import */ var _flow_definition_entity_js__rspack_import_3 = __webpack_require__(3770);
|
|
786
|
-
/* import */ var
|
|
787
|
-
/* import */ var
|
|
733
|
+
/* import */ var _flow_execution_entity_js__rspack_import_4 = __webpack_require__(9641);
|
|
734
|
+
/* import */ var _flow_version_entity_js__rspack_import_5 = __webpack_require__(2399);
|
|
788
735
|
// Every entity builder table is tenant-wide: definitions, flows and their runs are shared by all
|
|
789
736
|
// companies, and records carry only the fields the entity designer defines.
|
|
790
737
|
|
|
@@ -804,8 +751,8 @@ const EntityBuilderEntities = [
|
|
|
804
751
|
_field_definition_entity_js__rspack_import_1/* .FieldDefinition */.c,
|
|
805
752
|
_schema_change_log_entity_js__rspack_import_2/* .SchemaChangeLog */.W,
|
|
806
753
|
_flow_definition_entity_js__rspack_import_3/* .FlowDefinition */.G,
|
|
807
|
-
|
|
808
|
-
|
|
754
|
+
_flow_execution_entity_js__rspack_import_4/* .FlowExecution */.j,
|
|
755
|
+
_flow_version_entity_js__rspack_import_5/* .FlowVersion */.p
|
|
809
756
|
];
|
|
810
757
|
/** A copy on every call: a DataSource's entities array grows with runtime schemas and must never be shared. */ function getEntityBuilderEntities() {
|
|
811
758
|
return [
|
|
@@ -815,12 +762,12 @@ const EntityBuilderEntities = [
|
|
|
815
762
|
|
|
816
763
|
__webpack_require__.d(__webpack_exports__, {
|
|
817
764
|
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
765
|
We: () => (/* reexport safe */ _schema_change_log_entity_js__rspack_import_2.W),
|
|
820
766
|
ac: () => (getEntityBuilderEntities),
|
|
821
767
|
ck: () => (/* reexport safe */ _field_definition_entity_js__rspack_import_1.c),
|
|
822
768
|
f6: () => (/* reexport safe */ _entity_definition_entity_js__rspack_import_0.f),
|
|
823
|
-
j5: () => (/* reexport safe */
|
|
769
|
+
j5: () => (/* reexport safe */ _flow_execution_entity_js__rspack_import_4.j),
|
|
770
|
+
pj: () => (/* reexport safe */ _flow_version_entity_js__rspack_import_5.p)
|
|
824
771
|
}, {
|
|
825
772
|
Ui: EntityBuilderEntities
|
|
826
773
|
});
|
|
@@ -987,64 +934,12 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
987
934
|
});
|
|
988
935
|
|
|
989
936
|
|
|
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
937
|
},
|
|
1037
938
|
3422(module) {
|
|
1038
939
|
|
|
1039
940
|
module.exports = __rspack_external__flusys_nestjs_shared_393d2cae;
|
|
1040
941
|
|
|
1041
942
|
|
|
1042
|
-
},
|
|
1043
|
-
7158(module) {
|
|
1044
|
-
|
|
1045
|
-
module.exports = __rspack_external_typeorm;
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
943
|
},
|
|
1049
944
|
|
|
1050
945
|
};
|