@loopstack/common 0.23.0 → 0.25.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/dist/base/base-tool.d.ts +10 -0
- package/dist/base/base-tool.d.ts.map +1 -0
- package/dist/base/base-tool.js +39 -0
- package/dist/base/base-tool.js.map +1 -0
- package/dist/base/base-workflow.d.ts +27 -0
- package/dist/base/base-workflow.d.ts.map +1 -0
- package/dist/base/base-workflow.js +53 -0
- package/dist/base/base-workflow.js.map +1 -0
- package/dist/base/index.d.ts +4 -0
- package/dist/base/index.d.ts.map +1 -0
- package/dist/base/index.js +20 -0
- package/dist/base/index.js.map +1 -0
- package/dist/base/workflow-templates.d.ts +2 -0
- package/dist/base/workflow-templates.d.ts.map +1 -0
- package/dist/{interfaces/state-machine-validator.interface.js → base/workflow-templates.js} +1 -1
- package/dist/base/workflow-templates.js.map +1 -0
- package/dist/decorators/block.decorator.d.ts +52 -48
- package/dist/decorators/block.decorator.d.ts.map +1 -1
- package/dist/decorators/block.decorator.js +66 -86
- package/dist/decorators/block.decorator.js.map +1 -1
- package/dist/decorators/index.d.ts +0 -1
- package/dist/decorators/index.d.ts.map +1 -1
- package/dist/decorators/index.js +0 -1
- package/dist/decorators/index.js.map +1 -1
- package/dist/dtos/run-context.d.ts +4 -5
- package/dist/dtos/run-context.d.ts.map +1 -1
- package/dist/dtos/run-context.js +3 -4
- package/dist/dtos/run-context.js.map +1 -1
- package/dist/entities/document.entity.d.ts +2 -3
- package/dist/entities/document.entity.d.ts.map +1 -1
- package/dist/entities/document.entity.js +8 -14
- package/dist/entities/document.entity.js.map +1 -1
- package/dist/entities/index.d.ts +2 -3
- package/dist/entities/index.d.ts.map +1 -1
- package/dist/entities/index.js +2 -3
- package/dist/entities/index.js.map +1 -1
- package/dist/entities/secret.entity.d.ts +11 -0
- package/dist/entities/secret.entity.d.ts.map +1 -0
- package/dist/entities/secret.entity.js +58 -0
- package/dist/entities/secret.entity.js.map +1 -0
- package/dist/entities/workflow-checkpoint.entity.d.ts +16 -0
- package/dist/entities/workflow-checkpoint.entity.d.ts.map +1 -0
- package/dist/entities/workflow-checkpoint.entity.js +83 -0
- package/dist/entities/workflow-checkpoint.entity.js.map +1 -0
- package/dist/entities/workflow.entity.d.ts +14 -16
- package/dist/entities/workflow.entity.d.ts.map +1 -1
- package/dist/entities/workflow.entity.js +65 -79
- package/dist/entities/workflow.entity.js.map +1 -1
- package/dist/entities/workspace.entity.d.ts +3 -3
- package/dist/entities/workspace.entity.d.ts.map +1 -1
- package/dist/entities/workspace.entity.js +7 -7
- package/dist/entities/workspace.entity.js.map +1 -1
- package/dist/enums/index.d.ts +0 -1
- package/dist/enums/index.d.ts.map +1 -1
- package/dist/enums/index.js +0 -1
- package/dist/enums/index.js.map +1 -1
- package/dist/enums/workflow-state.enum.d.ts +1 -0
- package/dist/enums/workflow-state.enum.d.ts.map +1 -1
- package/dist/enums/workflow-state.enum.js +1 -0
- package/dist/enums/workflow-state.enum.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/interfaces/block.interface.d.ts +4 -9
- package/dist/interfaces/block.interface.d.ts.map +1 -1
- package/dist/interfaces/document-repository.interface.d.ts +18 -0
- package/dist/interfaces/document-repository.interface.d.ts.map +1 -0
- package/dist/interfaces/{state-machine-validator-result.interface.js → document-repository.interface.js} +1 -1
- package/dist/interfaces/document-repository.interface.js.map +1 -0
- package/dist/interfaces/execution-context.interface.d.ts +10 -0
- package/dist/interfaces/execution-context.interface.d.ts.map +1 -0
- package/dist/interfaces/execution-context.interface.js +3 -0
- package/dist/interfaces/execution-context.interface.js.map +1 -0
- package/dist/interfaces/handler.interface.d.ts +16 -5
- package/dist/interfaces/handler.interface.d.ts.map +1 -1
- package/dist/interfaces/index.d.ts +3 -2
- package/dist/interfaces/index.d.ts.map +1 -1
- package/dist/interfaces/index.js +3 -2
- package/dist/interfaces/index.js.map +1 -1
- package/dist/interfaces/tool-execution-interceptor.interface.d.ts +10 -10
- package/dist/interfaces/tool-execution-interceptor.interface.d.ts.map +1 -1
- package/dist/interfaces/tool-execution-interceptor.interface.js +12 -2
- package/dist/interfaces/tool-execution-interceptor.interface.js.map +1 -1
- package/dist/interfaces/workflow-metadata.interface.d.ts +0 -1
- package/dist/interfaces/workflow-metadata.interface.d.ts.map +1 -1
- package/dist/interfaces/workflow-orchestrator.interface.d.ts +11 -0
- package/dist/interfaces/workflow-orchestrator.interface.d.ts.map +1 -0
- package/dist/interfaces/workflow-orchestrator.interface.js +3 -0
- package/dist/interfaces/workflow-orchestrator.interface.js.map +1 -0
- package/dist/interfaces/workflow-state.interface.d.ts +1 -4
- package/dist/interfaces/workflow-state.interface.d.ts.map +1 -1
- package/dist/tokens.d.ts +5 -0
- package/dist/tokens.d.ts.map +1 -0
- package/dist/tokens.js +8 -0
- package/dist/tokens.js.map +1 -0
- package/dist/utils/block-config.builder.d.ts.map +1 -1
- package/dist/utils/block-config.builder.js +7 -6
- package/dist/utils/block-config.builder.js.map +1 -1
- package/dist/utils/block-metadata.utils.d.ts +7 -16
- package/dist/utils/block-metadata.utils.d.ts.map +1 -1
- package/dist/utils/block-metadata.utils.js +33 -63
- package/dist/utils/block-metadata.utils.js.map +1 -1
- package/dist/utils/index.d.ts +1 -3
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +1 -3
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/workflow-transitions.builder.d.ts +3 -0
- package/dist/utils/workflow-transitions.builder.d.ts.map +1 -0
- package/dist/utils/workflow-transitions.builder.js +22 -0
- package/dist/utils/workflow-transitions.builder.js.map +1 -0
- package/package.json +2 -3
- package/dist/decorators/state-machine-validator.decorator.d.ts +0 -5
- package/dist/decorators/state-machine-validator.decorator.d.ts.map +0 -1
- package/dist/decorators/state-machine-validator.decorator.js +0 -11
- package/dist/decorators/state-machine-validator.decorator.js.map +0 -1
- package/dist/entities/event-subscriber.entity.d.ts +0 -20
- package/dist/entities/event-subscriber.entity.d.ts.map +0 -1
- package/dist/entities/event-subscriber.entity.js +0 -102
- package/dist/entities/event-subscriber.entity.js.map +0 -1
- package/dist/entities/namespace.entity.d.ts +0 -20
- package/dist/entities/namespace.entity.d.ts.map +0 -1
- package/dist/entities/namespace.entity.js +0 -107
- package/dist/entities/namespace.entity.js.map +0 -1
- package/dist/entities/pipeline.entity.d.ts +0 -32
- package/dist/entities/pipeline.entity.d.ts.map +0 -1
- package/dist/entities/pipeline.entity.js +0 -164
- package/dist/entities/pipeline.entity.js.map +0 -1
- package/dist/enums/pipeline-state.d.ts +0 -9
- package/dist/enums/pipeline-state.d.ts.map +0 -1
- package/dist/enums/pipeline-state.js +0 -13
- package/dist/enums/pipeline-state.js.map +0 -1
- package/dist/interfaces/state-machine-validator-result.interface.d.ts +0 -5
- package/dist/interfaces/state-machine-validator-result.interface.d.ts.map +0 -1
- package/dist/interfaces/state-machine-validator-result.interface.js.map +0 -1
- package/dist/interfaces/state-machine-validator.interface.d.ts +0 -9
- package/dist/interfaces/state-machine-validator.interface.d.ts.map +0 -1
- package/dist/interfaces/state-machine-validator.interface.js.map +0 -1
- package/dist/utils/create-hash.util.d.ts +0 -2
- package/dist/utils/create-hash.util.d.ts.map +0 -1
- package/dist/utils/create-hash.util.js +0 -13
- package/dist/utils/create-hash.util.js.map +0 -1
- package/dist/utils/normalize-deep-serialize.util.d.ts +0 -2
- package/dist/utils/normalize-deep-serialize.util.d.ts.map +0 -1
- package/dist/utils/normalize-deep-serialize.util.js +0 -19
- package/dist/utils/normalize-deep-serialize.util.js.map +0 -1
- package/dist/utils/object-fingerprint.util.d.ts +0 -2
- package/dist/utils/object-fingerprint.util.d.ts.map +0 -1
- package/dist/utils/object-fingerprint.util.js +0 -10
- package/dist/utils/object-fingerprint.util.js.map +0 -1
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
import { RunPayload } from '@loopstack/contracts/schemas';
|
|
2
|
-
import {
|
|
2
|
+
import type { WorkflowEntity } from '../entities';
|
|
3
3
|
import { WorkspaceEnvironmentContextDto } from './workspace-environment-context.dto';
|
|
4
4
|
export declare class RunContext {
|
|
5
5
|
root: string;
|
|
6
|
-
index: string;
|
|
7
6
|
userId: string;
|
|
8
|
-
|
|
7
|
+
parentWorkflowId?: string;
|
|
9
8
|
workspaceId: string;
|
|
10
9
|
workflowId?: string;
|
|
11
|
-
namespace?: NamespaceEntity;
|
|
12
10
|
labels: string[];
|
|
13
11
|
payload: RunPayload;
|
|
14
|
-
|
|
12
|
+
workflowContext?: Record<string, any>;
|
|
15
13
|
workspaceEnvironments?: WorkspaceEnvironmentContextDto[];
|
|
14
|
+
workflowEntity?: WorkflowEntity;
|
|
16
15
|
options: {
|
|
17
16
|
stateless: boolean;
|
|
18
17
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run-context.d.ts","sourceRoot":"","sources":["../../src/dtos/run-context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"run-context.d.ts","sourceRoot":"","sources":["../../src/dtos/run-context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AAErF,qBAAa,UAAU;IACrB,IAAI,EAAG,MAAM,CAAC;IACd,MAAM,EAAG,MAAM,CAAC;IAChB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,WAAW,EAAG,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,EAAG,MAAM,EAAE,CAAC;IAClB,OAAO,EAAE,UAAU,CAAC;IACpB,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACtC,qBAAqB,CAAC,EAAE,8BAA8B,EAAE,CAAC;IAEzD,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,OAAO,EAAE;QACP,SAAS,EAAE,OAAO,CAAC;KACpB,CAAC;gBAEU,IAAI,EAAE,UAAU;CAG7B"}
|
package/dist/dtos/run-context.js
CHANGED
|
@@ -3,16 +3,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.RunContext = void 0;
|
|
4
4
|
class RunContext {
|
|
5
5
|
root;
|
|
6
|
-
index;
|
|
7
6
|
userId;
|
|
8
|
-
|
|
7
|
+
parentWorkflowId;
|
|
9
8
|
workspaceId;
|
|
10
9
|
workflowId;
|
|
11
|
-
namespace;
|
|
12
10
|
labels;
|
|
13
11
|
payload;
|
|
14
|
-
|
|
12
|
+
workflowContext;
|
|
15
13
|
workspaceEnvironments;
|
|
14
|
+
workflowEntity;
|
|
16
15
|
options;
|
|
17
16
|
constructor(data) {
|
|
18
17
|
Object.assign(this, data);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run-context.js","sourceRoot":"","sources":["../../src/dtos/run-context.ts"],"names":[],"mappings":";;;AAIA,MAAa,UAAU;IACrB,IAAI,CAAU;IACd,
|
|
1
|
+
{"version":3,"file":"run-context.js","sourceRoot":"","sources":["../../src/dtos/run-context.ts"],"names":[],"mappings":";;;AAIA,MAAa,UAAU;IACrB,IAAI,CAAU;IACd,MAAM,CAAU;IAChB,gBAAgB,CAAU;IAC1B,WAAW,CAAU;IACrB,UAAU,CAAU;IACpB,MAAM,CAAY;IAClB,OAAO,CAAa;IACpB,eAAe,CAAuB;IACtC,qBAAqB,CAAoC;IAEzD,cAAc,CAAkB;IAChC,OAAO,CAEL;IAEF,YAAY,IAAgB;QAC1B,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IAC5B,CAAC;CACF;AAnBD,gCAmBC"}
|
|
@@ -5,9 +5,9 @@ import { WorkflowEntity } from './workflow.entity';
|
|
|
5
5
|
export declare class DocumentEntity<T = any> {
|
|
6
6
|
id: string;
|
|
7
7
|
messageId: string;
|
|
8
|
-
|
|
8
|
+
alias: string;
|
|
9
|
+
className: string | null;
|
|
9
10
|
workspaceId: string;
|
|
10
|
-
pipelineId: string;
|
|
11
11
|
content: T | null;
|
|
12
12
|
schema: JSONSchemaConfigType | null;
|
|
13
13
|
error: z.ZodError | null;
|
|
@@ -16,7 +16,6 @@ export declare class DocumentEntity<T = any> {
|
|
|
16
16
|
meta: Record<string, any> | null;
|
|
17
17
|
isInvalidated: boolean;
|
|
18
18
|
isPendingRemoval: boolean;
|
|
19
|
-
workflowIndex: string;
|
|
20
19
|
version: number;
|
|
21
20
|
index: number;
|
|
22
21
|
transition: string | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"document.entity.d.ts","sourceRoot":"","sources":["../../src/entities/document.entity.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAEvE,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACrC,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,qBACa,cAAc,CAAC,CAAC,GAAG,GAAG;IAEjC,EAAE,EAAG,MAAM,CAAC;IAIZ,SAAS,EAAG,MAAM,CAAC;IAInB,
|
|
1
|
+
{"version":3,"file":"document.entity.d.ts","sourceRoot":"","sources":["../../src/entities/document.entity.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAEvE,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACrC,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,qBACa,cAAc,CAAC,CAAC,GAAG,GAAG;IAEjC,EAAE,EAAG,MAAM,CAAC;IAIZ,SAAS,EAAG,MAAM,CAAC;IAInB,KAAK,EAAG,MAAM,CAAC;IAGf,SAAS,EAAG,MAAM,GAAG,IAAI,CAAC;IAI1B,WAAW,EAAG,MAAM,CAAC;IAGrB,OAAO,EAAG,CAAC,GAAG,IAAI,CAAC;IAQnB,MAAM,EAAG,oBAAoB,GAAG,IAAI,CAAC;IAGrC,KAAK,EAAG,CAAC,CAAC,QAAQ,GAAG,IAAI,CAAC;IAQ1B,EAAE,EAAG,GAAG,CAAC;IAGT,IAAI,EAAG,MAAM,EAAE,CAAC;IAGhB,IAAI,EAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI,CAAC;IAGlC,aAAa,EAAG,OAAO,CAAC;IAGxB,gBAAgB,EAAG,OAAO,CAAC;IAG3B,OAAO,EAAG,MAAM,CAAC;IAGjB,KAAK,EAAG,MAAM,CAAC;IAGf,UAAU,EAAG,MAAM,GAAG,IAAI,CAAC;IAG3B,KAAK,EAAG,MAAM,GAAG,IAAI,CAAC;IAGtB,SAAS,EAAG,IAAI,CAAC;IAGjB,SAAS,EAAG,IAAI,CAAC;IAMjB,QAAQ,EAAG,cAAc,CAAC;IAG1B,MAAM,EAAG,MAAM,EAAE,CAAC;IAGlB,UAAU,EAAG,MAAM,CAAC;IAKpB,eAAe,EAAG,cAAc,EAAE,CAAC;IAInC,OAAO,EAAG,IAAI,CAAC;IAIf,SAAS,EAAG,MAAM,CAAC;CACpB"}
|
|
@@ -17,9 +17,9 @@ const workflow_entity_1 = require("./workflow.entity");
|
|
|
17
17
|
let DocumentEntity = class DocumentEntity {
|
|
18
18
|
id;
|
|
19
19
|
messageId;
|
|
20
|
-
|
|
20
|
+
alias;
|
|
21
|
+
className;
|
|
21
22
|
workspaceId;
|
|
22
|
-
pipelineId;
|
|
23
23
|
content;
|
|
24
24
|
schema;
|
|
25
25
|
error;
|
|
@@ -28,7 +28,6 @@ let DocumentEntity = class DocumentEntity {
|
|
|
28
28
|
meta;
|
|
29
29
|
isInvalidated;
|
|
30
30
|
isPendingRemoval;
|
|
31
|
-
workflowIndex;
|
|
32
31
|
version;
|
|
33
32
|
index;
|
|
34
33
|
transition;
|
|
@@ -53,20 +52,19 @@ __decorate([
|
|
|
53
52
|
__metadata("design:type", String)
|
|
54
53
|
], DocumentEntity.prototype, "messageId", void 0);
|
|
55
54
|
__decorate([
|
|
56
|
-
(0, typeorm_1.Column)({ type: 'varchar', name: '
|
|
55
|
+
(0, typeorm_1.Column)({ type: 'varchar', name: 'alias' }),
|
|
57
56
|
(0, typeorm_1.Index)(),
|
|
58
57
|
__metadata("design:type", String)
|
|
59
|
-
], DocumentEntity.prototype, "
|
|
58
|
+
], DocumentEntity.prototype, "alias", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, typeorm_1.Column)({ type: 'varchar', name: 'class_name', nullable: true }),
|
|
61
|
+
__metadata("design:type", Object)
|
|
62
|
+
], DocumentEntity.prototype, "className", void 0);
|
|
60
63
|
__decorate([
|
|
61
64
|
(0, typeorm_1.Column)({ name: 'workspace_id' }),
|
|
62
65
|
(0, typeorm_1.Index)(),
|
|
63
66
|
__metadata("design:type", String)
|
|
64
67
|
], DocumentEntity.prototype, "workspaceId", void 0);
|
|
65
|
-
__decorate([
|
|
66
|
-
(0, typeorm_1.Column)({ name: 'pipeline_id' }),
|
|
67
|
-
(0, typeorm_1.Index)(),
|
|
68
|
-
__metadata("design:type", String)
|
|
69
|
-
], DocumentEntity.prototype, "pipelineId", void 0);
|
|
70
68
|
__decorate([
|
|
71
69
|
(0, typeorm_1.Column)('jsonb', { nullable: true }),
|
|
72
70
|
__metadata("design:type", Object)
|
|
@@ -109,10 +107,6 @@ __decorate([
|
|
|
109
107
|
(0, typeorm_1.Column)({ name: 'is_pending_removal', default: false }),
|
|
110
108
|
__metadata("design:type", Boolean)
|
|
111
109
|
], DocumentEntity.prototype, "isPendingRemoval", void 0);
|
|
112
|
-
__decorate([
|
|
113
|
-
(0, typeorm_1.Column)('ltree', { name: 'workflow_index', default: '1' }),
|
|
114
|
-
__metadata("design:type", String)
|
|
115
|
-
], DocumentEntity.prototype, "workflowIndex", void 0);
|
|
116
110
|
__decorate([
|
|
117
111
|
(0, typeorm_1.Column)({ default: 1 }),
|
|
118
112
|
__metadata("design:type", Number)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"document.entity.js","sourceRoot":"","sources":["../../src/entities/document.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAUiB;AAGjB,oCAAiD;AACjD,+CAAqC;AACrC,uDAAmD;AAG5C,IAAM,cAAc,GAApB,MAAM,cAAc;IAEzB,EAAE,CAAU;IAIZ,SAAS,CAAU;IAInB,
|
|
1
|
+
{"version":3,"file":"document.entity.js","sourceRoot":"","sources":["../../src/entities/document.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAUiB;AAGjB,oCAAiD;AACjD,+CAAqC;AACrC,uDAAmD;AAG5C,IAAM,cAAc,GAApB,MAAM,cAAc;IAEzB,EAAE,CAAU;IAIZ,SAAS,CAAU;IAInB,KAAK,CAAU;IAGf,SAAS,CAAiB;IAI1B,WAAW,CAAU;IAGrB,OAAO,CAAY;IAQnB,MAAM,CAA+B;IAGrC,KAAK,CAAqB;IAQ1B,EAAE,CAAO;IAGT,IAAI,CAAY;IAGhB,IAAI,CAA8B;IAGlC,aAAa,CAAW;IAGxB,gBAAgB,CAAW;IAG3B,OAAO,CAAU;IAGjB,KAAK,CAAU;IAGf,UAAU,CAAiB;IAG3B,KAAK,CAAiB;IAGtB,SAAS,CAAQ;IAGjB,SAAS,CAAQ;IAMjB,QAAQ,CAAkB;IAG1B,MAAM,CAAY;IAGlB,UAAU,CAAU;IAKpB,eAAe,CAAoB;IAInC,OAAO,CAAQ;IAIf,SAAS,CAAU;CACpB,CAAA;AA/FY,wCAAc;AAEzB;IADC,IAAA,gCAAsB,EAAC,MA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HC,IAAA,oBAAU,EAAC,GAAG,EAAE,CAAC,gCAAc,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,YAAY,EAAE;QAC/D,QAAQ,EAAE,SAAS;KACpB,CAAC;;uDACiC;AAInC;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,EAAE,QAAQ,EAAE,UAAU,EAAE,CAAC;IAC/C,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;8BACzB,kBAAI;+CAAC;AAIf;IAFC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;IAC5C,IAAA,eAAK,GAAE;;iDACW;yBA9FR,cAAc;IAD1B,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,eAAe,EAAE,CAAC;GACrB,cAAc,CA+F1B"}
|
package/dist/entities/index.d.ts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
export * from './pipeline.entity.js';
|
|
2
1
|
export * from './document.entity.js';
|
|
3
2
|
export * from './workflow.entity.js';
|
|
3
|
+
export * from './workflow-checkpoint.entity.js';
|
|
4
4
|
export * from './workspace.entity.js';
|
|
5
5
|
export * from './workspace-environment.entity.js';
|
|
6
|
-
export * from './namespace.entity.js';
|
|
7
6
|
export * from './role.entity.js';
|
|
8
7
|
export * from './user.entity.js';
|
|
9
|
-
export * from './
|
|
8
|
+
export * from './secret.entity.js';
|
|
10
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/entities/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/entities/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,iCAAiC,CAAC;AAChD,cAAc,uBAAuB,CAAC;AACtC,cAAc,mCAAmC,CAAC;AAClD,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC"}
|
package/dist/entities/index.js
CHANGED
|
@@ -14,13 +14,12 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./pipeline.entity.js"), exports);
|
|
18
17
|
__exportStar(require("./document.entity.js"), exports);
|
|
19
18
|
__exportStar(require("./workflow.entity.js"), exports);
|
|
19
|
+
__exportStar(require("./workflow-checkpoint.entity.js"), exports);
|
|
20
20
|
__exportStar(require("./workspace.entity.js"), exports);
|
|
21
21
|
__exportStar(require("./workspace-environment.entity.js"), exports);
|
|
22
|
-
__exportStar(require("./namespace.entity.js"), exports);
|
|
23
22
|
__exportStar(require("./role.entity.js"), exports);
|
|
24
23
|
__exportStar(require("./user.entity.js"), exports);
|
|
25
|
-
__exportStar(require("./
|
|
24
|
+
__exportStar(require("./secret.entity.js"), exports);
|
|
26
25
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,uDAAqC;AACrC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,uDAAqC;AACrC,kEAAgD;AAChD,wDAAsC;AACtC,oEAAkD;AAClD,mDAAiC;AACjC,mDAAiC;AACjC,qDAAmC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { WorkspaceEntity } from './workspace.entity';
|
|
2
|
+
export declare class SecretEntity {
|
|
3
|
+
id: string;
|
|
4
|
+
key: string;
|
|
5
|
+
value: string;
|
|
6
|
+
workspace: WorkspaceEntity;
|
|
7
|
+
workspaceId: string;
|
|
8
|
+
createdAt: Date;
|
|
9
|
+
updatedAt: Date;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=secret.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"secret.entity.d.ts","sourceRoot":"","sources":["../../src/entities/secret.entity.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD,qBAEa,YAAY;IAEvB,EAAE,EAAG,MAAM,CAAC;IAGZ,GAAG,EAAG,MAAM,CAAC;IAGb,KAAK,EAAG,MAAM,CAAC;IAIf,SAAS,EAAG,eAAe,CAAC;IAG5B,WAAW,EAAG,MAAM,CAAC;IAGrB,SAAS,EAAG,IAAI,CAAC;IAGjB,SAAS,EAAG,IAAI,CAAC;CAClB"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.SecretEntity = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const workspace_entity_1 = require("./workspace.entity");
|
|
15
|
+
let SecretEntity = class SecretEntity {
|
|
16
|
+
id;
|
|
17
|
+
key;
|
|
18
|
+
value;
|
|
19
|
+
workspace;
|
|
20
|
+
workspaceId;
|
|
21
|
+
createdAt;
|
|
22
|
+
updatedAt;
|
|
23
|
+
};
|
|
24
|
+
exports.SecretEntity = SecretEntity;
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], SecretEntity.prototype, "id", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.Column)({ type: 'varchar' }),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], SecretEntity.prototype, "key", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.Column)({ type: 'varchar' }),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], SecretEntity.prototype, "value", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.ManyToOne)(() => workspace_entity_1.WorkspaceEntity, { onDelete: 'CASCADE' }),
|
|
39
|
+
(0, typeorm_1.JoinColumn)({ name: 'workspace_id' }),
|
|
40
|
+
__metadata("design:type", workspace_entity_1.WorkspaceEntity)
|
|
41
|
+
], SecretEntity.prototype, "workspace", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.Column)({ name: 'workspace_id' }),
|
|
44
|
+
__metadata("design:type", String)
|
|
45
|
+
], SecretEntity.prototype, "workspaceId", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, typeorm_1.CreateDateColumn)({ name: 'created_at' }),
|
|
48
|
+
__metadata("design:type", Date)
|
|
49
|
+
], SecretEntity.prototype, "createdAt", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, typeorm_1.UpdateDateColumn)({ name: 'updated_at' }),
|
|
52
|
+
__metadata("design:type", Date)
|
|
53
|
+
], SecretEntity.prototype, "updatedAt", void 0);
|
|
54
|
+
exports.SecretEntity = SecretEntity = __decorate([
|
|
55
|
+
(0, typeorm_1.Entity)({ name: 'core_secret' }),
|
|
56
|
+
(0, typeorm_1.Index)(['workspaceId', 'key'], { unique: true })
|
|
57
|
+
], SecretEntity);
|
|
58
|
+
//# sourceMappingURL=secret.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"secret.entity.js","sourceRoot":"","sources":["../../src/entities/secret.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCASiB;AACjB,yDAAqD;AAI9C,IAAM,YAAY,GAAlB,MAAM,YAAY;IAEvB,EAAE,CAAU;IAGZ,GAAG,CAAU;IAGb,KAAK,CAAU;IAIf,SAAS,CAAmB;IAG5B,WAAW,CAAU;IAGrB,SAAS,CAAQ;IAGjB,SAAS,CAAQ;CAClB,CAAA;AAtBY,oCAAY;AAEvB;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;wCACnB;AAGZ;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;yCACf;AAGb;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;2CACb;AAIf;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kCAAe,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;IACzD,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,cAAc,EAAE,CAAC;8BACzB,kCAAe;+CAAC;AAG5B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,cAAc,EAAE,CAAC;;iDACZ;AAGrB;IADC,IAAA,0BAAgB,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;8BAC7B,IAAI;+CAAC;AAGjB;IADC,IAAA,0BAAgB,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;8BAC7B,IAAI;+CAAC;uBArBN,YAAY;IAFxB,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;IAC/B,IAAA,eAAK,EAAC,CAAC,aAAa,EAAE,KAAK,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;GACnC,YAAY,CAsBxB"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { WorkflowEntity } from './workflow.entity';
|
|
2
|
+
export declare class WorkflowCheckpointEntity {
|
|
3
|
+
id: string;
|
|
4
|
+
workflow: WorkflowEntity;
|
|
5
|
+
workflowId: string;
|
|
6
|
+
place: string;
|
|
7
|
+
transitionId: string | null;
|
|
8
|
+
transitionFrom: string | null;
|
|
9
|
+
state: Record<string, unknown>;
|
|
10
|
+
tools: Record<string, unknown>;
|
|
11
|
+
documentIds: string[];
|
|
12
|
+
invalidatedDocumentIds: string[];
|
|
13
|
+
version: number;
|
|
14
|
+
createdAt: Date;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=workflow-checkpoint.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflow-checkpoint.entity.d.ts","sourceRoot":"","sources":["../../src/entities/workflow-checkpoint.entity.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,qBACa,wBAAwB;IAEnC,EAAE,EAAG,MAAM,CAAC;IAIZ,QAAQ,EAAG,cAAc,CAAC;IAI1B,UAAU,EAAG,MAAM,CAAC;IAGpB,KAAK,EAAG,MAAM,CAAC;IAGf,YAAY,EAAG,MAAM,GAAG,IAAI,CAAC;IAG7B,cAAc,EAAG,MAAM,GAAG,IAAI,CAAC;IAG/B,KAAK,EAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAGhC,KAAK,EAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAGhC,WAAW,EAAG,MAAM,EAAE,CAAC;IAGvB,sBAAsB,EAAG,MAAM,EAAE,CAAC;IAGlC,OAAO,EAAG,MAAM,CAAC;IAGjB,SAAS,EAAG,IAAI,CAAC;CAClB"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.WorkflowCheckpointEntity = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const workflow_entity_1 = require("./workflow.entity");
|
|
15
|
+
let WorkflowCheckpointEntity = class WorkflowCheckpointEntity {
|
|
16
|
+
id;
|
|
17
|
+
workflow;
|
|
18
|
+
workflowId;
|
|
19
|
+
place;
|
|
20
|
+
transitionId;
|
|
21
|
+
transitionFrom;
|
|
22
|
+
state;
|
|
23
|
+
tools;
|
|
24
|
+
documentIds;
|
|
25
|
+
invalidatedDocumentIds;
|
|
26
|
+
version;
|
|
27
|
+
createdAt;
|
|
28
|
+
};
|
|
29
|
+
exports.WorkflowCheckpointEntity = WorkflowCheckpointEntity;
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], WorkflowCheckpointEntity.prototype, "id", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.ManyToOne)(() => workflow_entity_1.WorkflowEntity, { onDelete: 'CASCADE' }),
|
|
36
|
+
(0, typeorm_1.JoinColumn)({ name: 'workflow_id' }),
|
|
37
|
+
__metadata("design:type", workflow_entity_1.WorkflowEntity)
|
|
38
|
+
], WorkflowCheckpointEntity.prototype, "workflow", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, typeorm_1.Column)({ name: 'workflow_id' }),
|
|
41
|
+
(0, typeorm_1.Index)(),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], WorkflowCheckpointEntity.prototype, "workflowId", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, typeorm_1.Column)({ type: 'varchar' }),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], WorkflowCheckpointEntity.prototype, "place", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, typeorm_1.Column)({ type: 'varchar', name: 'transition_id', nullable: true }),
|
|
50
|
+
__metadata("design:type", Object)
|
|
51
|
+
], WorkflowCheckpointEntity.prototype, "transitionId", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, typeorm_1.Column)({ type: 'varchar', name: 'transition_from', nullable: true }),
|
|
54
|
+
__metadata("design:type", Object)
|
|
55
|
+
], WorkflowCheckpointEntity.prototype, "transitionFrom", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, typeorm_1.Column)('jsonb', { default: {} }),
|
|
58
|
+
__metadata("design:type", Object)
|
|
59
|
+
], WorkflowCheckpointEntity.prototype, "state", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, typeorm_1.Column)('jsonb', { default: {} }),
|
|
62
|
+
__metadata("design:type", Object)
|
|
63
|
+
], WorkflowCheckpointEntity.prototype, "tools", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, typeorm_1.Column)('uuid', { name: 'document_ids', array: true, default: '{}' }),
|
|
66
|
+
__metadata("design:type", Array)
|
|
67
|
+
], WorkflowCheckpointEntity.prototype, "documentIds", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, typeorm_1.Column)('uuid', { name: 'invalidated_document_ids', array: true, default: '{}' }),
|
|
70
|
+
__metadata("design:type", Array)
|
|
71
|
+
], WorkflowCheckpointEntity.prototype, "invalidatedDocumentIds", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, typeorm_1.Column)({ default: 1 }),
|
|
74
|
+
__metadata("design:type", Number)
|
|
75
|
+
], WorkflowCheckpointEntity.prototype, "version", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, typeorm_1.CreateDateColumn)({ name: 'created_at' }),
|
|
78
|
+
__metadata("design:type", Date)
|
|
79
|
+
], WorkflowCheckpointEntity.prototype, "createdAt", void 0);
|
|
80
|
+
exports.WorkflowCheckpointEntity = WorkflowCheckpointEntity = __decorate([
|
|
81
|
+
(0, typeorm_1.Entity)({ name: 'core_workflow_checkpoint' })
|
|
82
|
+
], WorkflowCheckpointEntity);
|
|
83
|
+
//# sourceMappingURL=workflow-checkpoint.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflow-checkpoint.entity.js","sourceRoot":"","sources":["../../src/entities/workflow-checkpoint.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAiH;AACjH,uDAAmD;AAG5C,IAAM,wBAAwB,GAA9B,MAAM,wBAAwB;IAEnC,EAAE,CAAU;IAIZ,QAAQ,CAAkB;IAI1B,UAAU,CAAU;IAGpB,KAAK,CAAU;IAGf,YAAY,CAAiB;IAG7B,cAAc,CAAiB;IAG/B,KAAK,CAA2B;IAGhC,KAAK,CAA2B;IAGhC,WAAW,CAAY;IAGvB,sBAAsB,CAAY;IAGlC,OAAO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AAC;;yDACN;AAGjB;IADC,IAAA,0BAAgB,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;8BAC7B,IAAI;2DAAC;mCArCN,wBAAwB;IADpC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,0BAA0B,EAAE,CAAC;GAChC,wBAAwB,CAsCpC"}
|
|
@@ -1,38 +1,36 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import type { JSONSchemaConfigType, UiFormType, WorkflowTransitionType } from '@loopstack/contracts/types';
|
|
1
|
+
import type { WorkflowTransitionType } from '@loopstack/contracts/types';
|
|
3
2
|
import { WorkflowState } from '../enums';
|
|
4
|
-
import { TransitionResultLookup, WorkflowMementoData } from '../interfaces';
|
|
5
3
|
import { DocumentEntity } from './document.entity';
|
|
6
|
-
import { NamespaceEntity } from './namespace.entity';
|
|
7
4
|
import { User } from './user.entity';
|
|
5
|
+
import { WorkspaceEntity } from './workspace.entity';
|
|
8
6
|
export declare class WorkflowEntity {
|
|
9
7
|
id: string;
|
|
10
|
-
|
|
8
|
+
alias: string;
|
|
9
|
+
className: string | null;
|
|
11
10
|
title: string;
|
|
12
|
-
|
|
13
|
-
progress: number;
|
|
11
|
+
run: number;
|
|
14
12
|
status: WorkflowState;
|
|
15
13
|
hasError: boolean;
|
|
16
14
|
errorMessage: string | null;
|
|
15
|
+
callbackTransition: string | null;
|
|
16
|
+
callbackMetadata: Record<string, unknown> | null;
|
|
17
|
+
args: any;
|
|
18
|
+
context: Record<string, any>;
|
|
17
19
|
createdAt: Date;
|
|
18
20
|
updatedAt: Date;
|
|
19
21
|
place: string;
|
|
20
|
-
transitionResults: TransitionResultLookup | null;
|
|
21
|
-
inputData: Record<string, unknown>;
|
|
22
22
|
result: Record<string, unknown> | null;
|
|
23
23
|
availableTransitions: WorkflowTransitionType[] | null;
|
|
24
|
-
history: WorkflowMementoData<any, any>[] | null;
|
|
25
|
-
schema: JSONSchemaConfigType | null;
|
|
26
|
-
error: z.ZodError | null;
|
|
27
|
-
ui: UiFormType | null;
|
|
28
|
-
namespace: NamespaceEntity;
|
|
29
|
-
namespaceId: string;
|
|
30
|
-
pipelineId: string;
|
|
31
24
|
labels: string[];
|
|
32
25
|
dependencies: DocumentEntity[];
|
|
33
26
|
hashRecord: Record<string, string | null> | null;
|
|
34
27
|
documents: DocumentEntity[];
|
|
28
|
+
workspace: WorkspaceEntity;
|
|
29
|
+
workspaceId: string;
|
|
35
30
|
creator: User;
|
|
36
31
|
createdBy: string;
|
|
32
|
+
parent: WorkflowEntity | null;
|
|
33
|
+
parentId: string | null;
|
|
34
|
+
children: WorkflowEntity[];
|
|
37
35
|
}
|
|
38
36
|
//# sourceMappingURL=workflow.entity.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow.entity.d.ts","sourceRoot":"","sources":["../../src/entities/workflow.entity.ts"],"names":[],"mappings":"AAaA,OAAO,
|
|
1
|
+
{"version":3,"file":"workflow.entity.d.ts","sourceRoot":"","sources":["../../src/entities/workflow.entity.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACzE,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACrC,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD,qBACa,cAAc;IAEzB,EAAE,EAAG,MAAM,CAAC;IAIZ,KAAK,EAAG,MAAM,CAAC;IAGf,SAAS,EAAG,MAAM,GAAG,IAAI,CAAC;IAG1B,KAAK,EAAG,MAAM,CAAC;IAGf,GAAG,EAAG,MAAM,CAAC;IAOb,MAAM,EAAG,aAAa,CAAC;IAGvB,QAAQ,EAAG,OAAO,CAAC;IAGnB,YAAY,EAAG,MAAM,GAAG,IAAI,CAAC;IAG7B,kBAAkB,EAAG,MAAM,GAAG,I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