@loopstack/core 0.1.1 → 0.2.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/CHANGELOG.md +19 -0
- package/dist/modules/common/services/document-helper.service.d.ts +60 -74
- package/dist/modules/common/services/value-parser.service.js.map +1 -1
- package/dist/modules/configuration/configuration.module.js.map +1 -1
- package/dist/modules/configuration/services/configuration.service.d.ts +0 -1
- package/dist/modules/configuration/services/configuration.service.js +8 -19
- package/dist/modules/configuration/services/configuration.service.js.map +1 -1
- package/dist/modules/configuration/services/dynamic-schema-generator.service.js +3 -1
- package/dist/modules/configuration/services/dynamic-schema-generator.service.js.map +1 -1
- package/dist/modules/configuration/services/service-registry.service.js +1 -1
- package/dist/modules/configuration/services/service-registry.service.js.map +1 -1
- package/dist/modules/persistence/services/document.service.d.ts +1 -1
- package/dist/modules/persistence/services/document.service.js +2 -2
- package/dist/modules/persistence/services/document.service.js.map +1 -1
- package/dist/modules/persistence/services/namespace.service.js.map +1 -1
- package/dist/modules/persistence/services/workflow.service.js.map +1 -1
- package/dist/modules/workflow-processor/services/index.d.ts +2 -0
- package/dist/modules/workflow-processor/services/index.js +2 -0
- package/dist/modules/workflow-processor/services/index.js.map +1 -1
- package/dist/modules/workflow-processor/services/pipeline-processor.service.d.ts +14 -8
- package/dist/modules/workflow-processor/services/pipeline-processor.service.js +122 -28
- package/dist/modules/workflow-processor/services/pipeline-processor.service.js.map +1 -1
- package/dist/modules/workflow-processor/services/root-processor.service.d.ts +12 -0
- package/dist/modules/workflow-processor/services/root-processor.service.js +48 -0
- package/dist/modules/workflow-processor/services/root-processor.service.js.map +1 -0
- package/dist/modules/workflow-processor/services/state-machine-processor.service.d.ts +3 -3
- package/dist/modules/workflow-processor/services/state-machine-processor.service.js +11 -12
- package/dist/modules/workflow-processor/services/state-machine-processor.service.js.map +1 -1
- package/dist/modules/workflow-processor/services/template-expression-evaluator.service.d.ts +1 -1
- package/dist/modules/workflow-processor/services/template-expression-evaluator.service.js +3 -3
- package/dist/modules/workflow-processor/services/template-expression-evaluator.service.js.map +1 -1
- package/dist/modules/workflow-processor/services/tool-execution.service.d.ts +2 -2
- package/dist/modules/workflow-processor/services/tool-execution.service.js +5 -5
- package/dist/modules/workflow-processor/services/tool-execution.service.js.map +1 -1
- package/dist/modules/workflow-processor/services/workflow-processor.service.d.ts +5 -26
- package/dist/modules/workflow-processor/services/workflow-processor.service.js +9 -179
- package/dist/modules/workflow-processor/services/workflow-processor.service.js.map +1 -1
- package/dist/modules/workflow-processor/services/workflow-state.service.d.ts +8 -0
- package/dist/modules/workflow-processor/services/workflow-state.service.js +49 -0
- package/dist/modules/workflow-processor/services/workflow-state.service.js.map +1 -0
- package/dist/modules/workflow-processor/tool-services/batch-create-documents.service.d.ts +1 -1
- package/dist/modules/workflow-processor/tool-services/batch-create-documents.service.js +3 -3
- package/dist/modules/workflow-processor/tool-services/batch-create-documents.service.js.map +1 -1
- package/dist/modules/workflow-processor/tool-services/create-document.service.d.ts +61 -75
- package/dist/modules/workflow-processor/tool-services/create-document.service.js +10 -6
- package/dist/modules/workflow-processor/tool-services/create-document.service.js.map +1 -1
- package/dist/modules/workflow-processor/tool-services/load-document.service.d.ts +3 -3
- package/dist/modules/workflow-processor/tool-services/load-document.service.js +3 -3
- package/dist/modules/workflow-processor/tool-services/load-document.service.js.map +1 -1
- package/dist/modules/workflow-processor/tool-services/mock.service.js +1 -1
- package/dist/modules/workflow-processor/tool-services/mock.service.js.map +1 -1
- package/dist/modules/workflow-processor/tool-services/set-context.service.js.map +1 -1
- package/dist/modules/workflow-processor/tool-services/set-target-place.service.d.ts +1 -1
- package/dist/modules/workflow-processor/tool-services/set-target-place.service.js +5 -4
- package/dist/modules/workflow-processor/tool-services/set-target-place.service.js.map +1 -1
- package/dist/modules/workflow-processor/tool-services/update-document.service.d.ts +26 -33
- package/dist/modules/workflow-processor/workflow-processor.module.js +7 -1
- package/dist/modules/workflow-processor/workflow-processor.module.js.map +1 -1
- package/package.json +2 -2
- package/dist/modules/configuration/commands/generate-schemas.command.d.ts +0 -8
- package/dist/modules/configuration/commands/generate-schemas.command.js +0 -34
- package/dist/modules/configuration/commands/generate-schemas.command.js.map +0 -1
|
@@ -19,16 +19,20 @@ const zod_1 = require("zod");
|
|
|
19
19
|
const persistence_1 = require("../../persistence");
|
|
20
20
|
const lodash_1 = require("lodash");
|
|
21
21
|
const services_1 = require("../services");
|
|
22
|
-
const schema = zod_1.z
|
|
22
|
+
const schema = zod_1.z
|
|
23
|
+
.object({
|
|
23
24
|
document: zod_1.z.string().optional(),
|
|
24
25
|
update: shared_1.PartialDocumentSchema.optional(),
|
|
25
26
|
create: shared_1.DocumentSchema.optional(),
|
|
26
|
-
})
|
|
27
|
-
|
|
27
|
+
})
|
|
28
|
+
.strict();
|
|
29
|
+
const config = zod_1.z
|
|
30
|
+
.object({
|
|
28
31
|
document: zod_1.z.string().optional(),
|
|
29
32
|
update: shared_1.DocumentConfigSchema.partial().optional(),
|
|
30
33
|
create: shared_1.DocumentConfigSchema.optional(),
|
|
31
|
-
})
|
|
34
|
+
})
|
|
35
|
+
.strict();
|
|
32
36
|
let CreateDocumentService = CreateDocumentService_1 = class CreateDocumentService {
|
|
33
37
|
actionHelperService;
|
|
34
38
|
loopConfigService;
|
|
@@ -41,7 +45,7 @@ let CreateDocumentService = CreateDocumentService_1 = class CreateDocumentServic
|
|
|
41
45
|
this.documentService = documentService;
|
|
42
46
|
this.templateExpressionEvaluatorService = templateExpressionEvaluatorService;
|
|
43
47
|
}
|
|
44
|
-
getDocumentTemplate(props, workflow, context,
|
|
48
|
+
getDocumentTemplate(props, workflow, context, transitionData) {
|
|
45
49
|
if (!props?.document) {
|
|
46
50
|
return {};
|
|
47
51
|
}
|
|
@@ -49,7 +53,7 @@ let CreateDocumentService = CreateDocumentService_1 = class CreateDocumentServic
|
|
|
49
53
|
if (!template) {
|
|
50
54
|
throw new Error(`Document template ${props.document} not found.`);
|
|
51
55
|
}
|
|
52
|
-
return this.templateExpressionEvaluatorService.evaluate(template, {}, context, workflow,
|
|
56
|
+
return this.templateExpressionEvaluatorService.evaluate(template, {}, context, workflow, transitionData);
|
|
53
57
|
}
|
|
54
58
|
async apply(props, workflow, context, meta) {
|
|
55
59
|
if (!workflow) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-document.service.js","sourceRoot":"","sources":["../../../../src/modules/workflow-processor/tool-services/create-document.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,2CAAoD;AACpD,
|
|
1
|
+
{"version":3,"file":"create-document.service.js","sourceRoot":"","sources":["../../../../src/modules/workflow-processor/tool-services/create-document.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,2CAAoD;AACpD,8CAU2B;AAC3B,yCAAsD;AACtD,uDAA2D;AAE3D,6BAAwB;AAExB,mDAAoD;AACpD,mCAA+B;AAC/B,0CAAiE;AAEjE,MAAM,MAAM,GAAG,OAAC;KACb,MAAM,CAAC;IACN,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,MAAM,EAAE,8BAAqB,CAAC,QAAQ,EAAE;IACxC,MAAM,EAAE,uBAAc,CAAC,QAAQ,EAAE;CAClC,CAAC;KACD,MAAM,EAAE,CAAC;AAEZ,MAAM,MAAM,GAAG,OAAC;KACb,MAAM,CAAC;IACN,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,MAAM,EAAE,6BAAoB,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IACjD,MAAM,EAAE,6BAAoB,CAAC,QAAQ,EAAE;CACxC,CAAC;KACD,MAAM,EAAE,CAAC;AAOL,IAAM,qBAAqB,6BAA3B,MAAM,qBAAqB;IAItB;IACA;IACA;IACA;IANO,MAAM,GAAG,IAAI,eAAM,CAAC,uBAAqB,CAAC,IAAI,CAAC,CAAC;IAEjE,YACU,mBAA2C,EAC3C,iBAAuC,EACvC,e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C,YAAuC,CACxC,CAAC;QAEF,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,oBAAoB,YAAY,CAAC,IAAI,IAAI,CAAC,CAAC;QAE7D,MAAM,QAAQ,GAAG,IAAI,CAAC,eAAe,CAAC,MAAM,CAC1C,QAAQ,EACR,OAAO,EACP,IAAI,EACJ,YAAuC,CACxC,CAAC;QAEF,OAAO;YACL,OAAO,EAAE,IAAI;YACb,QAAQ;YACR,OAAO,EAAE,IAAI;YACb,IAAI,EAAE,QAAQ;SACf,CAAC;IACJ,CAAC;CACF,CAAA;AAhFY,sDAAqB;gCAArB,qBAAqB;IALjC,IAAA,mBAAU,GAAE;IACZ,IAAA,gBAAO,EAAC;QACP,MAAM;QACN,MAAM;KACP,CAAC;qCAK+B,+BAAsB;QACxB,oCAAoB;QACtB,6BAAe;QACI,6CAAkC;GAPrE,qBAAqB,CAgFjC"}
|
|
@@ -24,10 +24,10 @@ declare const schema: z.ZodObject<{
|
|
|
24
24
|
global: z.ZodOptional<z.ZodBoolean>;
|
|
25
25
|
optional: z.ZodOptional<z.ZodBoolean>;
|
|
26
26
|
}, "strict", z.ZodTypeAny, {
|
|
27
|
+
sort?: boolean | undefined;
|
|
27
28
|
map?: string | undefined;
|
|
28
29
|
filter?: string | undefined;
|
|
29
30
|
flat?: boolean | undefined;
|
|
30
|
-
sort?: boolean | undefined;
|
|
31
31
|
many?: boolean | undefined;
|
|
32
32
|
where?: any;
|
|
33
33
|
sortBy?: {
|
|
@@ -38,10 +38,10 @@ declare const schema: z.ZodObject<{
|
|
|
38
38
|
global?: boolean | undefined;
|
|
39
39
|
optional?: boolean | undefined;
|
|
40
40
|
}, {
|
|
41
|
+
sort?: boolean | undefined;
|
|
41
42
|
map?: string | undefined;
|
|
42
43
|
filter?: string | undefined;
|
|
43
44
|
flat?: boolean | undefined;
|
|
44
|
-
sort?: boolean | undefined;
|
|
45
45
|
many?: boolean | undefined;
|
|
46
46
|
where?: any;
|
|
47
47
|
sortBy?: {
|
|
@@ -63,6 +63,6 @@ export declare class LoadDocumentService implements ServiceInterface {
|
|
|
63
63
|
getDocumentsByQuery(props: z.infer<typeof schema>, pipelineId: string, workspaceId: string, workflow: WorkflowEntity): Promise<DocumentEntity[]>;
|
|
64
64
|
updateWorkflowDependenciesHash(workflow: WorkflowEntity): void;
|
|
65
65
|
createImportItem(options: z.infer<typeof schema>, currentEntities: DocumentEntity[], prevImport: ContextImportInterface | undefined): ContextImportInterface;
|
|
66
|
-
apply(props: z.infer<typeof schema>, workflow: WorkflowEntity | undefined, context: ContextInterface,
|
|
66
|
+
apply(props: z.infer<typeof schema>, workflow: WorkflowEntity | undefined, context: ContextInterface, transitionData: TransitionMetadataInterface): Promise<ServiceCallResult>;
|
|
67
67
|
}
|
|
68
68
|
export {};
|
|
@@ -106,13 +106,13 @@ let LoadDocumentService = LoadDocumentService_1 = class LoadDocumentService {
|
|
|
106
106
|
options,
|
|
107
107
|
};
|
|
108
108
|
}
|
|
109
|
-
async apply(props, workflow, context,
|
|
109
|
+
async apply(props, workflow, context, transitionData) {
|
|
110
110
|
if (!workflow) {
|
|
111
111
|
throw new Error('Workflow is undefined');
|
|
112
112
|
}
|
|
113
|
-
this.logger.debug(`Load document ${
|
|
113
|
+
this.logger.debug(`Load document ${transitionData.transition}`);
|
|
114
114
|
const currentEntities = await this.getDocumentsByQuery(props, context.pipelineId, context.workspaceId, workflow);
|
|
115
|
-
const prevImport = workflow.prevData?.imports?.[
|
|
115
|
+
const prevImport = workflow.prevData?.imports?.[transitionData.transition];
|
|
116
116
|
if (!props.ignoreChanges) {
|
|
117
117
|
if (!workflow.dependencies) {
|
|
118
118
|
workflow.dependencies = [];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"load-document.service.js","sourceRoot":"","sources":["../../../../src/modules/workflow-processor/tool-services/load-document.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAoD;AACpD,oDAAuB;AACvB,
|
|
1
|
+
{"version":3,"file":"load-document.service.js","sourceRoot":"","sources":["../../../../src/modules/workflow-processor/tool-services/load-document.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAoD;AACpD,oDAAuB;AACvB,8CAO2B;AAC3B,6BAAwB;AACxB,yCAA0D;AAE1D,mDAI2B;AAE3B,MAAM,MAAM,GAAG,OAAC;KACb,MAAM,CAAC;IACN,KAAK,EAAE,4BAAc;IACrB,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC1B,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC7B,IAAI,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAC5B,MAAM,EAAE,OAAC;SACN,MAAM,CAAC;QACN,SAAS,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC;QAC9B,MAAM,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC;KACzC,CAAC;SACD,QAAQ,EAAE;IACb,IAAI,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAC5B,IAAI,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAC5B,aAAa,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IACrC,MAAM,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAC9B,QAAQ,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CACjC,CAAC;KACD,MAAM,EAAE,CAAC;AAEZ,MAAM,MAAM,GAAG,MAAM,CAAC;AAOf,IAAM,mBAAmB,2BAAzB,MAAM,mBAAmB;IAIpB;IACA;IACA;IALO,MAAM,GAAG,IAAI,eAAM,CAAC,qBAAmB,CAAC,IAAI,CAAC,CAAC;IAE/D,YACU,eAAgC,EAChC,eA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,QAAQ,CAAC,YAAY,GAAG,QAAQ,CAAC,YAAY,CAAC,MAAM,CAClD,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,UAAU,EAAE,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC,CAC3C,CAAC;YACJ,CAAC;YAED,MAAM,qBAAqB,GAAG,QAAQ,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;YACzE,MAAM,eAAe,GAAG,eAAe,CAAC,MAAM,CAC5C,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,qBAAqB,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC,CACvD,CAAC;YACF,QAAQ,CAAC,YAAY,CAAC,IAAI,CAAC,GAAG,eAAe,CAAC,CAAC;YAE/C,IAAI,CAAC,8BAA8B,CAAC,QAAQ,CAAC,CAAC;QAChD,CAAC;QAED,MAAM,UAAU,GAAG,IAAI,CAAC,gBAAgB,CACtC,KAAK,EACL,eAAe,EACf,UAAU,CACX,CAAC;QAEF,OAAO;YACL,OAAO,EAAE,IAAI;YACb,QAAQ;YACR,IAAI,EAAE,UAAU;SACjB,CAAC;IACJ,CAAC;CACF,CAAA;AApLY,kDAAmB;8BAAnB,mBAAmB;IAL/B,IAAA,mBAAU,GAAE;IACZ,IAAA,gBAAO,EAAC;QACP,MAAM;QACN,MAAM;KACP,CAAC;qCAK2B,6BAAe;QACf,6BAAe;QACX,mCAA0B;GAN9C,mBAAmB,CAoL/B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mock.service.js","sourceRoot":"","sources":["../../../../src/modules/workflow-processor/tool-services/mock.service.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,2CAAoD;AACpD,6BAAwB;AACxB,
|
|
1
|
+
{"version":3,"file":"mock.service.js","sourceRoot":"","sources":["../../../../src/modules/workflow-processor/tool-services/mock.service.ts"],"names":[],"mappings":";;;;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AAW,CAiBvB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"set-context.service.js","sourceRoot":"","sources":["../../../../src/modules/workflow-processor/tool-services/set-context.service.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,2CAAoD;AACpD,6BAAwB;AACxB,
|
|
1
|
+
{"version":3,"file":"set-context.service.js","sourceRoot":"","sources":["../../../../src/modules/workflow-processor/tool-services/set-context.service.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,2CAAoD;AACpD,6BAAwB;AACxB,8CAI2B;AAG3B,MAAM,MAAM,GAAG,OAAC;KACb,MAAM,CAAC;IACN,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;IACf,KAAK,EAAE,OAAC,CAAC,GAAG,EAAE;CACf,CAAC;KACD,MAAM,EAAE,CAAC;AAEZ,MAAM,MAAM,GAAG,OAAC;KACb,MAAM,CAAC;IACN,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;IACf,KAAK,EAAE,OAAC,CAAC,GAAG,EAAE;CACf,CAAC;KACD,MAAM,EAAE,CAAC;AAOL,IAAM,iBAAiB,yBAAvB,MAAM,iBAAiB;IACX,MAAM,GAAG,IAAI,eAAM,CAAC,mBAAiB,CAAC,IAAI,CAAC,CAAC;IAE7D,KAAK,CAAC,KAAK,CACT,KAA6B,EAC7B,QAAoC;QAEpC,IAAI,CAAC,QAAQ,EAAE,CAAC;YACd,MAAM,IAAI,KAAK,CAAC,uBAAuB,CAAC,CAAC;QAC3C,CAAC;QAED,IAAI,CAAC,QAAQ,CAAC,aAAa,EAAE,CAAC;YAC5B,QAAQ,CAAC,aAAa,GAAG,EAAE,CAAC;QAC9B,CAAC;QAED,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC,KAAK,CAAC;QAEhD,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,2BAA2B,KAAK,CAAC,GAAG,IAAI,CAAC,CAAC;QAE5D,OAAO;YACL,OAAO,EAAE,IAAI;YACb,QAAQ;SACT,CAAC;IACJ,CAAC;CACF,CAAA;AAxBY,8CAAiB;4BAAjB,iBAAiB;IAL7B,IAAA,mBAAU,GAAE;IACZ,IAAA,gBAAO,EAAC;QACP,MAAM;QACN,MAAM;KACP,CAAC;GACW,iBAAiB,CAwB7B"}
|
|
@@ -9,6 +9,6 @@ declare const schema: z.ZodObject<{
|
|
|
9
9
|
}>;
|
|
10
10
|
export declare class SetTargetPlaceService implements ServiceInterface {
|
|
11
11
|
private readonly logger;
|
|
12
|
-
apply(props: z.infer<typeof schema>, workflow: WorkflowEntity, context: ContextInterface,
|
|
12
|
+
apply(props: z.infer<typeof schema>, workflow: WorkflowEntity, context: ContextInterface, transitionData: TransitionMetadataInterface): Promise<ServiceCallResult>;
|
|
13
13
|
}
|
|
14
14
|
export {};
|
|
@@ -23,12 +23,13 @@ const schema = zod_1.z
|
|
|
23
23
|
.strict();
|
|
24
24
|
let SetTargetPlaceService = SetTargetPlaceService_1 = class SetTargetPlaceService {
|
|
25
25
|
logger = new common_1.Logger(SetTargetPlaceService_1.name);
|
|
26
|
-
async apply(props, workflow, context,
|
|
27
|
-
if (!
|
|
26
|
+
async apply(props, workflow, context, transitionData) {
|
|
27
|
+
if (!transitionData.transition) {
|
|
28
28
|
throw new Error('No transition available.');
|
|
29
29
|
}
|
|
30
|
-
if ((Array.isArray(
|
|
31
|
-
|
|
30
|
+
if ((Array.isArray(transitionData.to) &&
|
|
31
|
+
!transitionData.to.includes(props.target)) ||
|
|
32
|
+
(!Array.isArray(transitionData.to) && transitionData.to !== props.target)) {
|
|
32
33
|
throw new Error(`Transition to ${props.target} not allowed.`);
|
|
33
34
|
}
|
|
34
35
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"set-target-place.service.js","sourceRoot":"","sources":["../../../../src/modules/workflow-processor/tool-services/set-target-place.service.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,2CAAoD;AACpD,6BAAwB;AACxB,
|
|
1
|
+
{"version":3,"file":"set-target-place.service.js","sourceRoot":"","sources":["../../../../src/modules/workflow-processor/tool-services/set-target-place.service.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,2CAAoD;AACpD,6BAAwB;AACxB,8CAS2B;AAE3B,MAAM,MAAM,GAAG,OAAC;KACb,MAAM,CAAC;IACN,MAAM,EAAE,yBAAgB;CACzB,CAAC;KACD,MAAM,EAAE,CAAC;AAEZ,MAAM,MAAM,GAAG,OAAC;KACb,MAAM,CAAC;IACN,MAAM,EAAE,4BAAmB;CAC5B,CAAC;KACD,MAAM,EAAE,CAAC;AAOL,IAAM,qBAAqB,6BAA3B,MAAM,qBAAqB;IACf,MAAM,GAAG,IAAI,eAAM,CAAC,uBAAqB,CAAC,IAAI,CAAC,CAAC;IAEjE,KAAK,CAAC,KAAK,CACT,KAA6B,EAC7B,QAAwB,EACxB,OAAyB,EACzB,cAA2C;QAE3C,IAAI,CAAC,cAAc,CAAC,UAAU,EAAE,CAAC;YAC/B,MAAM,IAAI,KAAK,CAAC,0BAA0B,CAAC,CAAC;QAC9C,CAAC;QAED,IACE,CAAC,KAAK,CAAC,OAAO,CAAC,cAAc,CAAC,EAAE,CAAC;YAC/B,CAAC,cAAc,CAAC,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;YAC5C,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,cAAc,CAAC,EAAE,CAAC,IAAI,cAAc,CAAC,EAAE,KAAK,KAAK,CAAC,MAAM,CAAC,EACzE,CAAC;YACD,MAAM,IAAI,KAAK,CAAC,iBAAiB,KAAK,CAAC,MAAM,eAAe,CAAC,CAAC;QAChE,CAAC;QAED,OAAO;YACL,OAAO,EAAE,IAAI;YACb,KAAK,EAAE,KAAK,CAAC,MAAM;SACpB,CAAC;IACJ,CAAC;CACF,CAAA;AA1BY,sDAAqB;gCAArB,qBAAqB;IALjC,IAAA,mBAAU,GAAE;IACZ,IAAA,gBAAO,EAAC;QACP,MAAM;QACN,MAAM;KACP,CAAC;GACW,qBAAqB,CA0BjC"}
|
|
@@ -15,97 +15,90 @@ declare const schema: z.ZodObject<{
|
|
|
15
15
|
mimeType: z.ZodOptional<z.ZodEnum<["text/plain", "text/html", "text/css", "text/xml", "text/markdown", "application/javascript", "application/typescript", "application/json", "application/xml", "application/yaml"]>>;
|
|
16
16
|
invalidate: z.ZodOptional<z.ZodBoolean>;
|
|
17
17
|
level: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"debug">, z.ZodLiteral<"info">, z.ZodLiteral<"warning">, z.ZodLiteral<"error">]>>;
|
|
18
|
-
enableTransitions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
19
18
|
enableAtPlaces: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
20
19
|
hideAtPlaces: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
21
20
|
data: z.ZodOptional<z.ZodAny>;
|
|
22
21
|
}, "strip", z.ZodTypeAny, {
|
|
23
|
-
mimeType?: "text/plain" | "text/html" | "text/css" | "text/xml" | "text/markdown" | "application/javascript" | "application/typescript" | "application/json" | "application/xml" | "application/yaml" | undefined;
|
|
24
22
|
invalidate?: boolean | undefined;
|
|
25
|
-
|
|
26
|
-
|
|
23
|
+
data?: any;
|
|
24
|
+
mimeType?: "text/plain" | "text/html" | "text/css" | "text/xml" | "text/markdown" | "application/javascript" | "application/typescript" | "application/json" | "application/xml" | "application/yaml" | undefined;
|
|
25
|
+
level?: "info" | "error" | "debug" | "warning" | undefined;
|
|
27
26
|
enableAtPlaces?: string[] | undefined;
|
|
28
27
|
hideAtPlaces?: string[] | undefined;
|
|
29
|
-
data?: any;
|
|
30
28
|
}, {
|
|
31
|
-
mimeType?: "text/plain" | "text/html" | "text/css" | "text/xml" | "text/markdown" | "application/javascript" | "application/typescript" | "application/json" | "application/xml" | "application/yaml" | undefined;
|
|
32
29
|
invalidate?: boolean | undefined;
|
|
33
|
-
|
|
34
|
-
|
|
30
|
+
data?: any;
|
|
31
|
+
mimeType?: "text/plain" | "text/html" | "text/css" | "text/xml" | "text/markdown" | "application/javascript" | "application/typescript" | "application/json" | "application/xml" | "application/yaml" | undefined;
|
|
32
|
+
level?: "info" | "error" | "debug" | "warning" | undefined;
|
|
35
33
|
enableAtPlaces?: string[] | undefined;
|
|
36
34
|
hideAtPlaces?: string[] | undefined;
|
|
37
|
-
data?: any;
|
|
38
35
|
}>>>;
|
|
39
36
|
}, "strip", z.ZodTypeAny, {
|
|
40
37
|
name?: string | undefined;
|
|
41
|
-
description?: string | undefined;
|
|
42
|
-
content?: any;
|
|
43
38
|
schema?: any;
|
|
39
|
+
content?: any;
|
|
44
40
|
ui?: any;
|
|
45
41
|
tags?: string[] | undefined;
|
|
46
42
|
meta?: {
|
|
47
|
-
mimeType?: "text/plain" | "text/html" | "text/css" | "text/xml" | "text/markdown" | "application/javascript" | "application/typescript" | "application/json" | "application/xml" | "application/yaml" | undefined;
|
|
48
43
|
invalidate?: boolean | undefined;
|
|
49
|
-
|
|
50
|
-
|
|
44
|
+
data?: any;
|
|
45
|
+
mimeType?: "text/plain" | "text/html" | "text/css" | "text/xml" | "text/markdown" | "application/javascript" | "application/typescript" | "application/json" | "application/xml" | "application/yaml" | undefined;
|
|
46
|
+
level?: "info" | "error" | "debug" | "warning" | undefined;
|
|
51
47
|
enableAtPlaces?: string[] | undefined;
|
|
52
48
|
hideAtPlaces?: string[] | undefined;
|
|
53
|
-
data?: any;
|
|
54
49
|
} | undefined;
|
|
50
|
+
description?: string | undefined;
|
|
55
51
|
}, {
|
|
56
52
|
name?: string | undefined;
|
|
57
|
-
description?: string | undefined;
|
|
58
|
-
content?: any;
|
|
59
53
|
schema?: any;
|
|
54
|
+
content?: any;
|
|
60
55
|
ui?: any;
|
|
61
56
|
tags?: string[] | undefined;
|
|
62
57
|
meta?: {
|
|
63
|
-
mimeType?: "text/plain" | "text/html" | "text/css" | "text/xml" | "text/markdown" | "application/javascript" | "application/typescript" | "application/json" | "application/xml" | "application/yaml" | undefined;
|
|
64
58
|
invalidate?: boolean | undefined;
|
|
65
|
-
|
|
66
|
-
|
|
59
|
+
data?: any;
|
|
60
|
+
mimeType?: "text/plain" | "text/html" | "text/css" | "text/xml" | "text/markdown" | "application/javascript" | "application/typescript" | "application/json" | "application/xml" | "application/yaml" | undefined;
|
|
61
|
+
level?: "info" | "error" | "debug" | "warning" | undefined;
|
|
67
62
|
enableAtPlaces?: string[] | undefined;
|
|
68
63
|
hideAtPlaces?: string[] | undefined;
|
|
69
|
-
data?: any;
|
|
70
64
|
} | undefined;
|
|
65
|
+
description?: string | undefined;
|
|
71
66
|
}>>;
|
|
72
67
|
}, "strict", z.ZodTypeAny, {
|
|
73
68
|
id: string;
|
|
74
69
|
update?: {
|
|
75
70
|
name?: string | undefined;
|
|
76
|
-
description?: string | undefined;
|
|
77
|
-
content?: any;
|
|
78
71
|
schema?: any;
|
|
72
|
+
content?: any;
|
|
79
73
|
ui?: any;
|
|
80
74
|
tags?: string[] | undefined;
|
|
81
75
|
meta?: {
|
|
82
|
-
mimeType?: "text/plain" | "text/html" | "text/css" | "text/xml" | "text/markdown" | "application/javascript" | "application/typescript" | "application/json" | "application/xml" | "application/yaml" | undefined;
|
|
83
76
|
invalidate?: boolean | undefined;
|
|
84
|
-
|
|
85
|
-
|
|
77
|
+
data?: any;
|
|
78
|
+
mimeType?: "text/plain" | "text/html" | "text/css" | "text/xml" | "text/markdown" | "application/javascript" | "application/typescript" | "application/json" | "application/xml" | "application/yaml" | undefined;
|
|
79
|
+
level?: "info" | "error" | "debug" | "warning" | undefined;
|
|
86
80
|
enableAtPlaces?: string[] | undefined;
|
|
87
81
|
hideAtPlaces?: string[] | undefined;
|
|
88
|
-
data?: any;
|
|
89
82
|
} | undefined;
|
|
83
|
+
description?: string | undefined;
|
|
90
84
|
} | undefined;
|
|
91
85
|
}, {
|
|
92
86
|
id: string;
|
|
93
87
|
update?: {
|
|
94
88
|
name?: string | undefined;
|
|
95
|
-
description?: string | undefined;
|
|
96
|
-
content?: any;
|
|
97
89
|
schema?: any;
|
|
90
|
+
content?: any;
|
|
98
91
|
ui?: any;
|
|
99
92
|
tags?: string[] | undefined;
|
|
100
93
|
meta?: {
|
|
101
|
-
mimeType?: "text/plain" | "text/html" | "text/css" | "text/xml" | "text/markdown" | "application/javascript" | "application/typescript" | "application/json" | "application/xml" | "application/yaml" | undefined;
|
|
102
94
|
invalidate?: boolean | undefined;
|
|
103
|
-
|
|
104
|
-
|
|
95
|
+
data?: any;
|
|
96
|
+
mimeType?: "text/plain" | "text/html" | "text/css" | "text/xml" | "text/markdown" | "application/javascript" | "application/typescript" | "application/json" | "application/xml" | "application/yaml" | undefined;
|
|
97
|
+
level?: "info" | "error" | "debug" | "warning" | undefined;
|
|
105
98
|
enableAtPlaces?: string[] | undefined;
|
|
106
99
|
hideAtPlaces?: string[] | undefined;
|
|
107
|
-
data?: any;
|
|
108
100
|
} | undefined;
|
|
101
|
+
description?: string | undefined;
|
|
109
102
|
} | undefined;
|
|
110
103
|
}>;
|
|
111
104
|
export declare class UpdateDocumentService implements ServiceInterface {
|
|
@@ -27,6 +27,8 @@ exports.WorkflowProcessorModule = WorkflowProcessorModule = __decorate([
|
|
|
27
27
|
persistence_1.PersistenceModule,
|
|
28
28
|
],
|
|
29
29
|
providers: [
|
|
30
|
+
services_1.RootProcessorService,
|
|
31
|
+
services_1.WorkflowStateService,
|
|
30
32
|
services_1.WorkflowProcessorService,
|
|
31
33
|
services_1.ToolExecutionService,
|
|
32
34
|
services_1.ToolSchemaValidatorService,
|
|
@@ -49,7 +51,11 @@ exports.WorkflowProcessorModule = WorkflowProcessorModule = __decorate([
|
|
|
49
51
|
services_1.StateMachineProcessorService,
|
|
50
52
|
services_1.StateMachineConfigService,
|
|
51
53
|
],
|
|
52
|
-
exports: [
|
|
54
|
+
exports: [
|
|
55
|
+
services_1.RootProcessorService,
|
|
56
|
+
services_1.ToolExecutionService,
|
|
57
|
+
services_1.TemplateExpressionEvaluatorService,
|
|
58
|
+
],
|
|
53
59
|
})
|
|
54
60
|
], WorkflowProcessorModule);
|
|
55
61
|
//# sourceMappingURL=workflow-processor.module.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow-processor.module.js","sourceRoot":"","sources":["../../../src/modules/workflow-processor/workflow-processor.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,oDAAuD;AACvD,gDAAmD;AACnD,uCAA+C;AAC/C,sCAAyC;AACzC,6CAIsB;AACtB,
|
|
1
|
+
{"version":3,"file":"workflow-processor.module.js","sourceRoot":"","sources":["../../../src/modules/workflow-processor/workflow-processor.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,oDAAuD;AACvD,gDAAmD;AACnD,uCAA+C;AAC/C,sCAAyC;AACzC,6CAIsB;AACtB,yCAYoB;AACpB,mDAUyB;AA0ClB,IAAM,uBAAuB,GAA7B,MAAM,uBAAuB;CAAG,CAAA;AAA1B,0DAAuB;kCAAvB,uBAAuB;IAxCnC,IAAA,eAAM,EAAC;QACN,OAAO,EAAE;YACP,sBAAe;YACf,qBAAY;YACZ,mCAAmB;YACnB,+BAAiB;SAClB;QACD,SAAS,EAAE;YACT,+BAAoB;YACpB,+BAAoB;YACpB,mCAAwB;YACxB,+BAAoB;YACpB,qCAA0B;YAC1B,qCAAqB;YACrB,2CAA2B;YAC3B,2BAAW;YACX,iCAAiB;YACjB,mCAAmB;YACnB,mCAAmB;YACnB,yCAAyB;YACzB,oCAAyB;YACzB,mCAAwB;YACxB,qCAAqB;YACrB,6CAAkC;YAClC,qCAAqB;YAErB,gCAAmB;YACnB,0CAA6B;YAC7B,oCAAuB;YAEvB,wCAA6B;YAC7B,uCAA4B;YAC5B,oCAAyB;SAC1B;QACD,OAAO,EAAE;YACP,+BAAoB;YACpB,+BAAoB;YACpB,6CAAkC;SACnC;KACF,CAAC;GACW,uBAAuB,CAAG"}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@loopstack/core",
|
|
3
3
|
"displayName": "Loopstack Core Module",
|
|
4
4
|
"description": "The core module of the loopstack automation framework",
|
|
5
|
-
"version": "0.
|
|
5
|
+
"version": "0.2.0",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Jakob Klippel",
|
|
8
8
|
"url": "https://www.linkedin.com/in/jakob-klippel//"
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"main": "dist/index.js",
|
|
12
12
|
"types": "dist/index.d.ts",
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@loopstack/shared": "^0.
|
|
14
|
+
"@loopstack/shared": "^0.2.0",
|
|
15
15
|
"@nestjs/common": "^11.0.1",
|
|
16
16
|
"@nestjs/config": "^4.0.0",
|
|
17
17
|
"@nestjs/core": "^11.0.1",
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { CommandRunner } from 'nest-commander';
|
|
2
|
-
import { JsonSchemaGeneratorService } from '../services/json-schema-generator.service';
|
|
3
|
-
export declare class GenerateSchemasCommand extends CommandRunner {
|
|
4
|
-
private readonly jsonSchemaGeneratorService;
|
|
5
|
-
private readonly logger;
|
|
6
|
-
constructor(jsonSchemaGeneratorService: JsonSchemaGeneratorService);
|
|
7
|
-
run(): Promise<void>;
|
|
8
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
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
|
-
var GenerateSchemasCommand_1;
|
|
12
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
exports.GenerateSchemasCommand = void 0;
|
|
14
|
-
const nest_commander_1 = require("nest-commander");
|
|
15
|
-
const json_schema_generator_service_1 = require("../services/json-schema-generator.service");
|
|
16
|
-
const common_1 = require("@nestjs/common");
|
|
17
|
-
let GenerateSchemasCommand = GenerateSchemasCommand_1 = class GenerateSchemasCommand extends nest_commander_1.CommandRunner {
|
|
18
|
-
jsonSchemaGeneratorService;
|
|
19
|
-
logger = new common_1.Logger(GenerateSchemasCommand_1.name);
|
|
20
|
-
constructor(jsonSchemaGeneratorService) {
|
|
21
|
-
super();
|
|
22
|
-
this.jsonSchemaGeneratorService = jsonSchemaGeneratorService;
|
|
23
|
-
}
|
|
24
|
-
async run() {
|
|
25
|
-
this.logger.log('Generating json schema...');
|
|
26
|
-
await this.jsonSchemaGeneratorService.generateSchemas();
|
|
27
|
-
}
|
|
28
|
-
};
|
|
29
|
-
exports.GenerateSchemasCommand = GenerateSchemasCommand;
|
|
30
|
-
exports.GenerateSchemasCommand = GenerateSchemasCommand = GenerateSchemasCommand_1 = __decorate([
|
|
31
|
-
(0, nest_commander_1.Command)({ name: 'generate-schema', description: 'Generate json schema' }),
|
|
32
|
-
__metadata("design:paramtypes", [json_schema_generator_service_1.JsonSchemaGeneratorService])
|
|
33
|
-
], GenerateSchemasCommand);
|
|
34
|
-
//# sourceMappingURL=generate-schemas.command.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"generate-schemas.command.js","sourceRoot":"","sources":["../../../../src/modules/configuration/commands/generate-schemas.command.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,mDAAwD;AACxD,6FAAuF;AACvF,2CAAwC;AAGjC,IAAM,sBAAsB,8BAA5B,MAAM,sBAAuB,SAAQ,8BAAa;IAGpC;IAFF,MAAM,GAAG,IAAI,eAAM,CAAC,wBAAsB,CAAC,IAAI,CAAC,CAAC;IAClE,YACmB,0BAAsD;QAEvE,KAAK,EAAE,CAAC;QAFS,+BAA0B,GAA1B,0BAA0B,CAA4B;IAGzE,CAAC;IAED,KAAK,CAAC,GAAG;QACP,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,2BAA2B,CAAC,CAAC;QAC7C,MAAM,IAAI,CAAC,0BAA0B,CAAC,eAAe,EAAE,CAAC;IAC1D,CAAC;CACF,CAAA;AAZY,wDAAsB;iCAAtB,sBAAsB;IADlC,IAAA,wBAAO,EAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,WAAW,EAAE,sBAAsB,EAAE,CAAC;qCAIzB,0DAA0B;GAH9D,sBAAsB,CAYlC"}
|