@loopstack/core 0.2.0 → 0.3.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 +11 -0
- package/dist/modules/common/common.module.js +9 -15
- package/dist/modules/common/common.module.js.map +1 -1
- package/dist/modules/common/errors/object-expression.error.d.ts +4 -0
- package/dist/modules/common/errors/object-expression.error.js +13 -0
- package/dist/modules/common/errors/object-expression.error.js.map +1 -0
- package/dist/modules/common/errors/template-expression.error.d.ts +4 -0
- package/dist/modules/common/errors/template-expression.error.js +13 -0
- package/dist/modules/common/errors/template-expression.error.js.map +1 -0
- package/dist/modules/common/services/context.service.d.ts +1 -0
- package/dist/modules/common/services/context.service.js +4 -0
- package/dist/modules/common/services/context.service.js.map +1 -1
- package/dist/modules/common/services/expression-handler/object-expression.handler.d.ts +20 -0
- package/dist/modules/common/services/expression-handler/object-expression.handler.js +125 -0
- package/dist/modules/common/services/expression-handler/object-expression.handler.js.map +1 -0
- package/dist/modules/common/services/expression-handler/template-expression.handler.d.ts +12 -0
- package/dist/modules/common/services/expression-handler/template-expression.handler.js +63 -0
- package/dist/modules/common/services/expression-handler/template-expression.handler.js.map +1 -0
- package/dist/modules/common/services/handlebars-helpers/date-formatter-handlebars-helper.service.d.ts +9 -0
- package/dist/modules/common/services/handlebars-helpers/date-formatter-handlebars-helper.service.js +124 -0
- package/dist/modules/common/services/handlebars-helpers/date-formatter-handlebars-helper.service.js.map +1 -0
- package/dist/modules/common/services/handlebars-helpers/index.d.ts +1 -0
- package/dist/modules/common/services/handlebars-helpers/index.js +18 -0
- package/dist/modules/common/services/handlebars-helpers/index.js.map +1 -0
- package/dist/modules/common/services/handlebars-processor.service.d.ts +12 -0
- package/dist/modules/common/services/handlebars-processor.service.js +70 -0
- package/dist/modules/common/services/handlebars-processor.service.js.map +1 -0
- package/dist/modules/common/services/index.d.ts +6 -5
- package/dist/modules/common/services/index.js +6 -5
- package/dist/modules/common/services/index.js.map +1 -1
- package/dist/modules/common/services/template.service.d.ts +16 -0
- package/dist/modules/common/services/template.service.js +64 -0
- package/dist/modules/common/services/template.service.js.map +1 -0
- package/dist/modules/common/services/variable-sanitizer.service.d.ts +9 -0
- package/dist/modules/common/services/variable-sanitizer.service.js +84 -0
- package/dist/modules/common/services/variable-sanitizer.service.js.map +1 -0
- package/dist/modules/configuration/configuration.module.js +2 -1
- package/dist/modules/configuration/configuration.module.js.map +1 -1
- package/dist/modules/configuration/services/configuration.service.d.ts +15 -13
- package/dist/modules/configuration/services/configuration.service.js +97 -96
- package/dist/modules/configuration/services/configuration.service.js.map +1 -1
- package/dist/modules/configuration/services/index.d.ts +1 -0
- package/dist/modules/configuration/services/index.js +1 -0
- package/dist/modules/configuration/services/index.js.map +1 -1
- package/dist/modules/configuration/services/schema-registry.service.d.ts +9 -0
- package/dist/modules/configuration/services/schema-registry.service.js +41 -0
- package/dist/modules/configuration/services/schema-registry.service.js.map +1 -0
- package/dist/modules/persistence/services/document.service.d.ts +5 -1
- package/dist/modules/persistence/services/document.service.js +27 -15
- package/dist/modules/persistence/services/document.service.js.map +1 -1
- package/dist/modules/workflow-processor/services/index.d.ts +2 -1
- package/dist/modules/workflow-processor/services/index.js +2 -1
- package/dist/modules/workflow-processor/services/index.js.map +1 -1
- package/dist/modules/workflow-processor/services/pipeline-processor.service.d.ts +9 -8
- package/dist/modules/workflow-processor/services/pipeline-processor.service.js +92 -52
- package/dist/modules/workflow-processor/services/pipeline-processor.service.js.map +1 -1
- package/dist/modules/workflow-processor/services/root-processor.service.d.ts +2 -2
- package/dist/modules/workflow-processor/services/root-processor.service.js +1 -0
- package/dist/modules/workflow-processor/services/root-processor.service.js.map +1 -1
- package/dist/modules/workflow-processor/services/service-execution.service.d.ts +12 -0
- package/dist/modules/workflow-processor/services/service-execution.service.js +53 -0
- package/dist/modules/workflow-processor/services/service-execution.service.js.map +1 -0
- package/dist/modules/workflow-processor/services/state-machine-config.service.d.ts +2 -17
- package/dist/modules/workflow-processor/services/state-machine-config.service.js +33 -17
- package/dist/modules/workflow-processor/services/state-machine-config.service.js.map +1 -1
- package/dist/modules/workflow-processor/services/state-machine-processor.service.d.ts +11 -7
- package/dist/modules/workflow-processor/services/state-machine-processor.service.js +90 -24
- 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 +24 -4
- package/dist/modules/workflow-processor/services/template-expression-evaluator.service.js +90 -21
- 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 +8 -20
- package/dist/modules/workflow-processor/services/tool-execution.service.js +31 -55
- package/dist/modules/workflow-processor/services/tool-execution.service.js.map +1 -1
- package/dist/modules/workflow-processor/services/workflow-context.service.d.ts +4 -0
- package/dist/modules/{common/services/template-engine.service.js → workflow-processor/services/workflow-context.service.js} +12 -15
- package/dist/modules/workflow-processor/services/workflow-context.service.js.map +1 -0
- package/dist/modules/workflow-processor/services/workflow-processor.service.d.ts +2 -2
- package/dist/modules/workflow-processor/services/workflow-processor.service.js +12 -8
- package/dist/modules/workflow-processor/services/workflow-processor.service.js.map +1 -1
- package/dist/modules/workflow-processor/services/workflow-state.service.d.ts +2 -2
- package/dist/modules/workflow-processor/services/workflow-state.service.js +5 -5
- package/dist/modules/workflow-processor/services/workflow-state.service.js.map +1 -1
- package/dist/modules/workflow-processor/tool-services/add-namespace.service.js +4 -4
- package/dist/modules/workflow-processor/tool-services/add-namespace.service.js.map +1 -1
- package/dist/modules/workflow-processor/tool-services/batch-create-documents.service.d.ts +6 -10
- package/dist/modules/workflow-processor/tool-services/batch-create-documents.service.js +38 -26
- 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 +17 -138
- package/dist/modules/workflow-processor/tool-services/create-document.service.js +83 -31
- 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 +25 -50
- package/dist/modules/workflow-processor/tool-services/load-document.service.js +57 -79
- package/dist/modules/workflow-processor/tool-services/load-document.service.js.map +1 -1
- package/dist/modules/workflow-processor/tool-services/mock.service.d.ts +11 -8
- package/dist/modules/workflow-processor/tool-services/mock.service.js +41 -9
- package/dist/modules/workflow-processor/tool-services/mock.service.js.map +1 -1
- package/dist/modules/workflow-processor/tool-services/set-context.service.d.ts +3 -0
- package/dist/modules/workflow-processor/tool-services/set-context.service.js +11 -5
- 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.js +1 -1
- package/dist/modules/workflow-processor/tool-services/set-target-place.service.js.map +1 -1
- package/dist/modules/workflow-processor/tool-services/transition-selector.service.js +2 -2
- package/dist/modules/workflow-processor/tool-services/transition-selector.service.js.map +1 -1
- package/dist/modules/workflow-processor/tool-services/update-document.service.d.ts +32 -55
- package/dist/modules/workflow-processor/tool-services/update-document.service.js +92 -7
- package/dist/modules/workflow-processor/tool-services/update-document.service.js.map +1 -1
- package/dist/modules/workflow-processor/validators/workflow-option.validator.d.ts +1 -1
- package/dist/modules/workflow-processor/validators/workflow-option.validator.js +3 -3
- package/dist/modules/workflow-processor/validators/workflow-option.validator.js.map +1 -1
- package/dist/modules/workflow-processor/workflow-processor.module.js +2 -1
- package/dist/modules/workflow-processor/workflow-processor.module.js.map +1 -1
- package/dist/utils/load-configuration.js +5 -3
- package/dist/utils/load-configuration.js.map +1 -1
- package/package.json +5 -3
- package/dist/modules/common/services/document-helper.service.d.ts +0 -198
- package/dist/modules/common/services/document-helper.service.js +0 -53
- package/dist/modules/common/services/document-helper.service.js.map +0 -1
- package/dist/modules/common/services/expression-evaluator.service.d.ts +0 -5
- package/dist/modules/common/services/expression-evaluator.service.js +0 -44
- package/dist/modules/common/services/expression-evaluator.service.js.map +0 -1
- package/dist/modules/common/services/schema-validator.service.d.ts +0 -7
- package/dist/modules/common/services/schema-validator.service.js +0 -41
- package/dist/modules/common/services/schema-validator.service.js.map +0 -1
- package/dist/modules/common/services/template-engine.service.d.ts +0 -5
- package/dist/modules/common/services/template-engine.service.js.map +0 -1
- package/dist/modules/common/services/value-parser.service.d.ts +0 -19
- package/dist/modules/common/services/value-parser.service.js +0 -68
- package/dist/modules/common/services/value-parser.service.js.map +0 -1
- package/dist/modules/workflow-processor/services/tool-schema-validator.service.d.ts +0 -5
- package/dist/modules/workflow-processor/services/tool-schema-validator.service.js +0 -41
- package/dist/modules/workflow-processor/services/tool-schema-validator.service.js.map +0 -1
|
@@ -1,78 +1,13 @@
|
|
|
1
1
|
import { ContextInterface, ServiceInterface, ServiceCallResult, TransitionMetadataInterface } from '@loopstack/shared';
|
|
2
|
-
import {
|
|
3
|
-
import { ConfigurationService } from '../../configuration';
|
|
2
|
+
import { ConfigurationService, SchemaRegistry } from '../../configuration';
|
|
4
3
|
import { z } from 'zod';
|
|
5
4
|
import { WorkflowEntity } from '@loopstack/shared';
|
|
6
5
|
import { DocumentService } from '../../persistence';
|
|
7
6
|
import { TemplateExpressionEvaluatorService } from '../services';
|
|
8
7
|
declare const schema: z.ZodObject<{
|
|
9
|
-
document: z.
|
|
8
|
+
document: z.ZodString;
|
|
10
9
|
update: z.ZodOptional<z.ZodObject<{
|
|
11
|
-
name: z.ZodOptional<z.ZodString>;
|
|
12
|
-
description: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
13
|
-
content: z.ZodOptional<z.ZodAny>;
|
|
14
|
-
schema: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
|
|
15
|
-
ui: z.ZodOptional<z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>>;
|
|
16
|
-
tags: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
17
|
-
meta: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
18
|
-
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"]>>;
|
|
19
|
-
invalidate: z.ZodOptional<z.ZodBoolean>;
|
|
20
|
-
level: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"debug">, z.ZodLiteral<"info">, z.ZodLiteral<"warning">, z.ZodLiteral<"error">]>>;
|
|
21
|
-
enableAtPlaces: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
22
|
-
hideAtPlaces: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
23
|
-
data: z.ZodOptional<z.ZodAny>;
|
|
24
|
-
}, "strip", z.ZodTypeAny, {
|
|
25
|
-
invalidate?: boolean | undefined;
|
|
26
|
-
data?: any;
|
|
27
|
-
mimeType?: "text/plain" | "text/html" | "text/css" | "text/xml" | "text/markdown" | "application/javascript" | "application/typescript" | "application/json" | "application/xml" | "application/yaml" | undefined;
|
|
28
|
-
level?: "info" | "error" | "debug" | "warning" | undefined;
|
|
29
|
-
enableAtPlaces?: string[] | undefined;
|
|
30
|
-
hideAtPlaces?: string[] | undefined;
|
|
31
|
-
}, {
|
|
32
|
-
invalidate?: boolean | undefined;
|
|
33
|
-
data?: any;
|
|
34
|
-
mimeType?: "text/plain" | "text/html" | "text/css" | "text/xml" | "text/markdown" | "application/javascript" | "application/typescript" | "application/json" | "application/xml" | "application/yaml" | undefined;
|
|
35
|
-
level?: "info" | "error" | "debug" | "warning" | undefined;
|
|
36
|
-
enableAtPlaces?: string[] | undefined;
|
|
37
|
-
hideAtPlaces?: string[] | undefined;
|
|
38
|
-
}>>>;
|
|
39
|
-
}, "strip", z.ZodTypeAny, {
|
|
40
|
-
name?: string | undefined;
|
|
41
|
-
schema?: any;
|
|
42
|
-
content?: any;
|
|
43
|
-
ui?: any;
|
|
44
|
-
tags?: string[] | undefined;
|
|
45
|
-
meta?: {
|
|
46
|
-
invalidate?: boolean | undefined;
|
|
47
|
-
data?: any;
|
|
48
|
-
mimeType?: "text/plain" | "text/html" | "text/css" | "text/xml" | "text/markdown" | "application/javascript" | "application/typescript" | "application/json" | "application/xml" | "application/yaml" | undefined;
|
|
49
|
-
level?: "info" | "error" | "debug" | "warning" | undefined;
|
|
50
|
-
enableAtPlaces?: string[] | undefined;
|
|
51
|
-
hideAtPlaces?: string[] | undefined;
|
|
52
|
-
} | undefined;
|
|
53
|
-
description?: string | undefined;
|
|
54
|
-
}, {
|
|
55
|
-
name?: string | undefined;
|
|
56
|
-
schema?: any;
|
|
57
|
-
content?: any;
|
|
58
|
-
ui?: any;
|
|
59
|
-
tags?: string[] | undefined;
|
|
60
|
-
meta?: {
|
|
61
|
-
invalidate?: boolean | undefined;
|
|
62
|
-
data?: any;
|
|
63
|
-
mimeType?: "text/plain" | "text/html" | "text/css" | "text/xml" | "text/markdown" | "application/javascript" | "application/typescript" | "application/json" | "application/xml" | "application/yaml" | undefined;
|
|
64
|
-
level?: "info" | "error" | "debug" | "warning" | undefined;
|
|
65
|
-
enableAtPlaces?: string[] | undefined;
|
|
66
|
-
hideAtPlaces?: string[] | undefined;
|
|
67
|
-
} | undefined;
|
|
68
|
-
description?: string | undefined;
|
|
69
|
-
}>>;
|
|
70
|
-
create: z.ZodOptional<z.ZodObject<{
|
|
71
|
-
name: z.ZodString;
|
|
72
|
-
description: z.ZodOptional<z.ZodString>;
|
|
73
10
|
content: z.ZodAny;
|
|
74
|
-
schema: z.ZodType<any, z.ZodTypeDef, any>;
|
|
75
|
-
ui: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
|
|
76
11
|
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
77
12
|
meta: z.ZodOptional<z.ZodObject<{
|
|
78
13
|
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"]>>;
|
|
@@ -80,130 +15,74 @@ declare const schema: z.ZodObject<{
|
|
|
80
15
|
level: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"debug">, z.ZodLiteral<"info">, z.ZodLiteral<"warning">, z.ZodLiteral<"error">]>>;
|
|
81
16
|
enableAtPlaces: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
82
17
|
hideAtPlaces: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
83
|
-
data: z.ZodOptional<z.ZodAny>;
|
|
84
18
|
}, "strip", z.ZodTypeAny, {
|
|
85
|
-
invalidate?: boolean | undefined;
|
|
86
|
-
data?: any;
|
|
87
19
|
mimeType?: "text/plain" | "text/html" | "text/css" | "text/xml" | "text/markdown" | "application/javascript" | "application/typescript" | "application/json" | "application/xml" | "application/yaml" | undefined;
|
|
88
|
-
|
|
20
|
+
invalidate?: boolean | undefined;
|
|
21
|
+
level?: "debug" | "info" | "warning" | "error" | undefined;
|
|
89
22
|
enableAtPlaces?: string[] | undefined;
|
|
90
23
|
hideAtPlaces?: string[] | undefined;
|
|
91
24
|
}, {
|
|
92
|
-
invalidate?: boolean | undefined;
|
|
93
|
-
data?: any;
|
|
94
25
|
mimeType?: "text/plain" | "text/html" | "text/css" | "text/xml" | "text/markdown" | "application/javascript" | "application/typescript" | "application/json" | "application/xml" | "application/yaml" | undefined;
|
|
95
|
-
|
|
26
|
+
invalidate?: boolean | undefined;
|
|
27
|
+
level?: "debug" | "info" | "warning" | "error" | undefined;
|
|
96
28
|
enableAtPlaces?: string[] | undefined;
|
|
97
29
|
hideAtPlaces?: string[] | undefined;
|
|
98
30
|
}>>;
|
|
99
31
|
}, "strip", z.ZodTypeAny, {
|
|
100
|
-
name: string;
|
|
101
|
-
schema?: any;
|
|
102
32
|
content?: any;
|
|
103
|
-
ui?: any;
|
|
104
33
|
tags?: string[] | undefined;
|
|
105
34
|
meta?: {
|
|
106
|
-
invalidate?: boolean | undefined;
|
|
107
|
-
data?: any;
|
|
108
35
|
mimeType?: "text/plain" | "text/html" | "text/css" | "text/xml" | "text/markdown" | "application/javascript" | "application/typescript" | "application/json" | "application/xml" | "application/yaml" | undefined;
|
|
109
|
-
|
|
36
|
+
invalidate?: boolean | undefined;
|
|
37
|
+
level?: "debug" | "info" | "warning" | "error" | undefined;
|
|
110
38
|
enableAtPlaces?: string[] | undefined;
|
|
111
39
|
hideAtPlaces?: string[] | undefined;
|
|
112
40
|
} | undefined;
|
|
113
|
-
description?: string | undefined;
|
|
114
41
|
}, {
|
|
115
|
-
name: string;
|
|
116
|
-
schema?: any;
|
|
117
42
|
content?: any;
|
|
118
|
-
ui?: any;
|
|
119
43
|
tags?: string[] | undefined;
|
|
120
44
|
meta?: {
|
|
121
|
-
invalidate?: boolean | undefined;
|
|
122
|
-
data?: any;
|
|
123
45
|
mimeType?: "text/plain" | "text/html" | "text/css" | "text/xml" | "text/markdown" | "application/javascript" | "application/typescript" | "application/json" | "application/xml" | "application/yaml" | undefined;
|
|
124
|
-
|
|
46
|
+
invalidate?: boolean | undefined;
|
|
47
|
+
level?: "debug" | "info" | "warning" | "error" | undefined;
|
|
125
48
|
enableAtPlaces?: string[] | undefined;
|
|
126
49
|
hideAtPlaces?: string[] | undefined;
|
|
127
50
|
} | undefined;
|
|
128
|
-
description?: string | undefined;
|
|
129
51
|
}>>;
|
|
130
52
|
}, "strict", z.ZodTypeAny, {
|
|
53
|
+
document: string;
|
|
131
54
|
update?: {
|
|
132
|
-
name?: string | undefined;
|
|
133
|
-
schema?: any;
|
|
134
55
|
content?: any;
|
|
135
|
-
ui?: any;
|
|
136
56
|
tags?: string[] | undefined;
|
|
137
57
|
meta?: {
|
|
138
|
-
invalidate?: boolean | undefined;
|
|
139
|
-
data?: any;
|
|
140
58
|
mimeType?: "text/plain" | "text/html" | "text/css" | "text/xml" | "text/markdown" | "application/javascript" | "application/typescript" | "application/json" | "application/xml" | "application/yaml" | undefined;
|
|
141
|
-
level?: "info" | "error" | "debug" | "warning" | undefined;
|
|
142
|
-
enableAtPlaces?: string[] | undefined;
|
|
143
|
-
hideAtPlaces?: string[] | undefined;
|
|
144
|
-
} | undefined;
|
|
145
|
-
description?: string | undefined;
|
|
146
|
-
} | undefined;
|
|
147
|
-
create?: {
|
|
148
|
-
name: string;
|
|
149
|
-
schema?: any;
|
|
150
|
-
content?: any;
|
|
151
|
-
ui?: any;
|
|
152
|
-
tags?: string[] | undefined;
|
|
153
|
-
meta?: {
|
|
154
59
|
invalidate?: boolean | undefined;
|
|
155
|
-
|
|
156
|
-
mimeType?: "text/plain" | "text/html" | "text/css" | "text/xml" | "text/markdown" | "application/javascript" | "application/typescript" | "application/json" | "application/xml" | "application/yaml" | undefined;
|
|
157
|
-
level?: "info" | "error" | "debug" | "warning" | undefined;
|
|
60
|
+
level?: "debug" | "info" | "warning" | "error" | undefined;
|
|
158
61
|
enableAtPlaces?: string[] | undefined;
|
|
159
62
|
hideAtPlaces?: string[] | undefined;
|
|
160
63
|
} | undefined;
|
|
161
|
-
description?: string | undefined;
|
|
162
64
|
} | undefined;
|
|
163
|
-
document?: string | undefined;
|
|
164
65
|
}, {
|
|
66
|
+
document: string;
|
|
165
67
|
update?: {
|
|
166
|
-
name?: string | undefined;
|
|
167
|
-
schema?: any;
|
|
168
68
|
content?: any;
|
|
169
|
-
ui?: any;
|
|
170
69
|
tags?: string[] | undefined;
|
|
171
70
|
meta?: {
|
|
172
|
-
invalidate?: boolean | undefined;
|
|
173
|
-
data?: any;
|
|
174
71
|
mimeType?: "text/plain" | "text/html" | "text/css" | "text/xml" | "text/markdown" | "application/javascript" | "application/typescript" | "application/json" | "application/xml" | "application/yaml" | undefined;
|
|
175
|
-
level?: "info" | "error" | "debug" | "warning" | undefined;
|
|
176
|
-
enableAtPlaces?: string[] | undefined;
|
|
177
|
-
hideAtPlaces?: string[] | undefined;
|
|
178
|
-
} | undefined;
|
|
179
|
-
description?: string | undefined;
|
|
180
|
-
} | undefined;
|
|
181
|
-
create?: {
|
|
182
|
-
name: string;
|
|
183
|
-
schema?: any;
|
|
184
|
-
content?: any;
|
|
185
|
-
ui?: any;
|
|
186
|
-
tags?: string[] | undefined;
|
|
187
|
-
meta?: {
|
|
188
72
|
invalidate?: boolean | undefined;
|
|
189
|
-
|
|
190
|
-
mimeType?: "text/plain" | "text/html" | "text/css" | "text/xml" | "text/markdown" | "application/javascript" | "application/typescript" | "application/json" | "application/xml" | "application/yaml" | undefined;
|
|
191
|
-
level?: "info" | "error" | "debug" | "warning" | undefined;
|
|
73
|
+
level?: "debug" | "info" | "warning" | "error" | undefined;
|
|
192
74
|
enableAtPlaces?: string[] | undefined;
|
|
193
75
|
hideAtPlaces?: string[] | undefined;
|
|
194
76
|
} | undefined;
|
|
195
|
-
description?: string | undefined;
|
|
196
77
|
} | undefined;
|
|
197
|
-
document?: string | undefined;
|
|
198
78
|
}>;
|
|
199
79
|
export declare class CreateDocumentService implements ServiceInterface {
|
|
200
|
-
private actionHelperService;
|
|
201
80
|
private loopConfigService;
|
|
202
81
|
private documentService;
|
|
203
82
|
private templateExpressionEvaluatorService;
|
|
83
|
+
private schemaRegistry;
|
|
204
84
|
private readonly logger;
|
|
205
|
-
constructor(
|
|
206
|
-
|
|
207
|
-
apply(props: z.infer<typeof schema>, workflow: WorkflowEntity | undefined, context: ContextInterface, meta: TransitionMetadataInterface): Promise<ServiceCallResult>;
|
|
85
|
+
constructor(loopConfigService: ConfigurationService, documentService: DocumentService, templateExpressionEvaluatorService: TemplateExpressionEvaluatorService, schemaRegistry: SchemaRegistry);
|
|
86
|
+
apply(props: z.infer<typeof schema>, workflow: WorkflowEntity | undefined, context: ContextInterface, meta: TransitionMetadataInterface, parentArguments: any): Promise<ServiceCallResult>;
|
|
208
87
|
}
|
|
209
88
|
export {};
|
|
@@ -13,7 +13,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
13
13
|
exports.CreateDocumentService = void 0;
|
|
14
14
|
const common_1 = require("@nestjs/common");
|
|
15
15
|
const shared_1 = require("@loopstack/shared");
|
|
16
|
-
const common_2 = require("../../common");
|
|
17
16
|
const configuration_1 = require("../../configuration");
|
|
18
17
|
const zod_1 = require("zod");
|
|
19
18
|
const persistence_1 = require("../../persistence");
|
|
@@ -21,56 +20,109 @@ const lodash_1 = require("lodash");
|
|
|
21
20
|
const services_1 = require("../services");
|
|
22
21
|
const schema = zod_1.z
|
|
23
22
|
.object({
|
|
24
|
-
document: zod_1.z.string()
|
|
25
|
-
update:
|
|
26
|
-
|
|
23
|
+
document: zod_1.z.string(),
|
|
24
|
+
update: zod_1.z
|
|
25
|
+
.object({
|
|
26
|
+
content: zod_1.z.any(),
|
|
27
|
+
tags: zod_1.z.array(zod_1.z.string()).optional(),
|
|
28
|
+
meta: zod_1.z
|
|
29
|
+
.object({
|
|
30
|
+
mimeType: shared_1.MimeTypeSchema.optional(),
|
|
31
|
+
invalidate: zod_1.z.boolean().optional(),
|
|
32
|
+
level: zod_1.z
|
|
33
|
+
.union([
|
|
34
|
+
zod_1.z.literal('debug'),
|
|
35
|
+
zod_1.z.literal('info'),
|
|
36
|
+
zod_1.z.literal('warning'),
|
|
37
|
+
zod_1.z.literal('error'),
|
|
38
|
+
])
|
|
39
|
+
.optional(),
|
|
40
|
+
enableAtPlaces: zod_1.z.array(zod_1.z.string()).optional(),
|
|
41
|
+
hideAtPlaces: zod_1.z.array(zod_1.z.string()).optional(),
|
|
42
|
+
})
|
|
43
|
+
.optional(),
|
|
44
|
+
})
|
|
45
|
+
.optional(),
|
|
27
46
|
})
|
|
28
47
|
.strict();
|
|
29
48
|
const config = zod_1.z
|
|
30
49
|
.object({
|
|
31
|
-
document: zod_1.z.string()
|
|
32
|
-
update:
|
|
33
|
-
|
|
50
|
+
document: zod_1.z.string(),
|
|
51
|
+
update: zod_1.z
|
|
52
|
+
.object({
|
|
53
|
+
content: zod_1.z.any(),
|
|
54
|
+
tags: zod_1.z.array(zod_1.z.string()).optional(),
|
|
55
|
+
meta: zod_1.z
|
|
56
|
+
.object({
|
|
57
|
+
mimeType: zod_1.z.union([shared_1.MimeTypeSchema, shared_1.ExpressionString]).optional(),
|
|
58
|
+
invalidate: zod_1.z.union([zod_1.z.boolean(), shared_1.ExpressionString]).optional(),
|
|
59
|
+
level: zod_1.z
|
|
60
|
+
.union([
|
|
61
|
+
shared_1.ExpressionString,
|
|
62
|
+
zod_1.z.literal('debug'),
|
|
63
|
+
zod_1.z.literal('info'),
|
|
64
|
+
zod_1.z.literal('warning'),
|
|
65
|
+
zod_1.z.literal('error'),
|
|
66
|
+
])
|
|
67
|
+
.optional(),
|
|
68
|
+
enableAtPlaces: zod_1.z.array(zod_1.z.string()).optional(),
|
|
69
|
+
hideAtPlaces: zod_1.z.array(zod_1.z.string()).optional(),
|
|
70
|
+
})
|
|
71
|
+
.optional(),
|
|
72
|
+
})
|
|
73
|
+
.optional(),
|
|
34
74
|
})
|
|
35
75
|
.strict();
|
|
36
76
|
let CreateDocumentService = CreateDocumentService_1 = class CreateDocumentService {
|
|
37
|
-
actionHelperService;
|
|
38
77
|
loopConfigService;
|
|
39
78
|
documentService;
|
|
40
79
|
templateExpressionEvaluatorService;
|
|
80
|
+
schemaRegistry;
|
|
41
81
|
logger = new common_1.Logger(CreateDocumentService_1.name);
|
|
42
|
-
constructor(
|
|
43
|
-
this.actionHelperService = actionHelperService;
|
|
82
|
+
constructor(loopConfigService, documentService, templateExpressionEvaluatorService, schemaRegistry) {
|
|
44
83
|
this.loopConfigService = loopConfigService;
|
|
45
84
|
this.documentService = documentService;
|
|
46
85
|
this.templateExpressionEvaluatorService = templateExpressionEvaluatorService;
|
|
86
|
+
this.schemaRegistry = schemaRegistry;
|
|
47
87
|
}
|
|
48
|
-
|
|
49
|
-
if (!props?.document) {
|
|
50
|
-
return {};
|
|
51
|
-
}
|
|
52
|
-
const template = this.loopConfigService.get('documents', props.document);
|
|
53
|
-
if (!template) {
|
|
54
|
-
throw new Error(`Document template ${props.document} not found.`);
|
|
55
|
-
}
|
|
56
|
-
return this.templateExpressionEvaluatorService.evaluate(template, {}, context, workflow, transitionData);
|
|
57
|
-
}
|
|
58
|
-
async apply(props, workflow, context, meta) {
|
|
88
|
+
async apply(props, workflow, context, meta, parentArguments) {
|
|
59
89
|
if (!workflow) {
|
|
60
90
|
throw new Error('Workflow is undefined');
|
|
61
91
|
}
|
|
62
|
-
const template = this.
|
|
63
|
-
const
|
|
64
|
-
|
|
65
|
-
|
|
92
|
+
const template = this.loopConfigService.resolveConfig('documents', props.document, context.includes);
|
|
93
|
+
const mergedTemplateData = (0, lodash_1.merge)(template.config, props.update ?? {});
|
|
94
|
+
const documentSkeleton = this.templateExpressionEvaluatorService.parse((0, lodash_1.omit)(mergedTemplateData, ['content']), {
|
|
95
|
+
arguments: parentArguments,
|
|
96
|
+
context,
|
|
97
|
+
workflow,
|
|
98
|
+
transition: meta,
|
|
99
|
+
}, {
|
|
100
|
+
schema: shared_1.DocumentSchema,
|
|
101
|
+
});
|
|
102
|
+
const zodSchema = this.schemaRegistry.getZodSchema(`${template.name}.content`);
|
|
103
|
+
if (!zodSchema && mergedTemplateData.content) {
|
|
104
|
+
throw Error(`Document creates with content no schema defined.`);
|
|
66
105
|
}
|
|
67
|
-
|
|
68
|
-
|
|
106
|
+
const parsedDocumentContent = mergedTemplateData.content
|
|
107
|
+
? this.templateExpressionEvaluatorService.parse(mergedTemplateData.content, {
|
|
108
|
+
arguments: parentArguments,
|
|
109
|
+
context,
|
|
110
|
+
workflow,
|
|
111
|
+
transition: meta,
|
|
112
|
+
}, {
|
|
113
|
+
schema: zodSchema,
|
|
114
|
+
})
|
|
115
|
+
: null;
|
|
116
|
+
const documentData = {
|
|
117
|
+
...documentSkeleton,
|
|
118
|
+
content: parsedDocumentContent,
|
|
119
|
+
};
|
|
69
120
|
const document = this.documentService.create(workflow, context, meta, documentData);
|
|
121
|
+
this.logger.debug(`Created document "${documentData.name}".`);
|
|
70
122
|
return {
|
|
71
123
|
success: true,
|
|
72
|
-
workflow,
|
|
73
124
|
persist: true,
|
|
125
|
+
workflow,
|
|
74
126
|
data: document,
|
|
75
127
|
};
|
|
76
128
|
}
|
|
@@ -82,9 +134,9 @@ exports.CreateDocumentService = CreateDocumentService = CreateDocumentService_1
|
|
|
82
134
|
config,
|
|
83
135
|
schema,
|
|
84
136
|
}),
|
|
85
|
-
__metadata("design:paramtypes", [
|
|
86
|
-
configuration_1.ConfigurationService,
|
|
137
|
+
__metadata("design:paramtypes", [configuration_1.ConfigurationService,
|
|
87
138
|
persistence_1.DocumentService,
|
|
88
|
-
services_1.TemplateExpressionEvaluatorService
|
|
139
|
+
services_1.TemplateExpressionEvaluatorService,
|
|
140
|
+
configuration_1.SchemaRegistry])
|
|
89
141
|
], CreateDocumentService);
|
|
90
142
|
//# sourceMappingURL=create-document.service.js.map
|
|
@@ -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,8CAW2B;AAC3B,uDAA2E;AAE3E,6BAAwB;AAExB,mDAAoD;AACpD,mCAAqC;AACrC,0CAAiE;AAEjE,MAAM,MAAM,GAAG,OAAC;KACb,MAAM,CAAC;IACN,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE;IACpB,MAAM,EAAE,OAAC;SACN,MAAM,CAAC;QACN,OAAO,EAAE,OAAC,CAAC,GAAG,EAAE;QAChB,IAAI,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;QACpC,IAAI,EAAE,OAAC;aACJ,MAAM,CAAC;YACN,QAAQ,EAAE,uBAAc,CAAC,QAAQ,EAAE;YACnC,UAAU,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;YAClC,KAAK,EAAE,OAAC;iBACL,KAAK,CAAC;gBACL,OAAC,CAAC,OAA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@@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ContextInterface, ServiceInterface, ServiceCallResult, TransitionMetadataInterface } from '@loopstack/shared';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import { ExpressionEvaluatorService } from '../../common';
|
|
4
3
|
import { DocumentEntity, WorkflowEntity } from '@loopstack/shared';
|
|
5
4
|
import { DocumentService, WorkflowService } from '../../persistence';
|
|
6
5
|
declare const schema: z.ZodObject<{
|
|
7
6
|
where: any;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
iteratees: string[];
|
|
16
|
-
orders: ("asc" | "desc")[];
|
|
17
|
-
}, {
|
|
18
|
-
iteratees: string[];
|
|
19
|
-
orders: ("asc" | "desc")[];
|
|
20
|
-
}>>;
|
|
21
|
-
many: z.ZodOptional<z.ZodBoolean>;
|
|
22
|
-
flat: z.ZodOptional<z.ZodBoolean>;
|
|
23
|
-
ignoreChanges: z.ZodOptional<z.ZodBoolean>;
|
|
24
|
-
global: z.ZodOptional<z.ZodBoolean>;
|
|
25
|
-
optional: z.ZodOptional<z.ZodBoolean>;
|
|
7
|
+
orderBy: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodLiteral<"ASC">, z.ZodLiteral<"DESC">]>>>;
|
|
8
|
+
getMany: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
9
|
+
take: z.ZodDefault<z.ZodNumber>;
|
|
10
|
+
skip: z.ZodDefault<z.ZodNumber>;
|
|
11
|
+
isDependency: z.ZodDefault<z.ZodBoolean>;
|
|
12
|
+
isGlobal: z.ZodDefault<z.ZodBoolean>;
|
|
13
|
+
strictMode: z.ZodDefault<z.ZodBoolean>;
|
|
26
14
|
}, "strict", z.ZodTypeAny, {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
15
|
+
isGlobal: boolean;
|
|
16
|
+
orderBy: Record<string, "ASC" | "DESC">;
|
|
17
|
+
take: number;
|
|
18
|
+
skip: number;
|
|
19
|
+
getMany: boolean;
|
|
20
|
+
isDependency: boolean;
|
|
21
|
+
strictMode: boolean;
|
|
32
22
|
where?: any;
|
|
33
|
-
sortBy?: {
|
|
34
|
-
iteratees: string[];
|
|
35
|
-
orders: ("asc" | "desc")[];
|
|
36
|
-
} | undefined;
|
|
37
|
-
ignoreChanges?: boolean | undefined;
|
|
38
|
-
global?: boolean | undefined;
|
|
39
|
-
optional?: boolean | undefined;
|
|
40
23
|
}, {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
many?: boolean | undefined;
|
|
24
|
+
isGlobal?: boolean | undefined;
|
|
25
|
+
orderBy?: Record<string, "ASC" | "DESC"> | undefined;
|
|
26
|
+
take?: number | undefined;
|
|
27
|
+
skip?: number | undefined;
|
|
46
28
|
where?: any;
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
} | undefined;
|
|
51
|
-
ignoreChanges?: boolean | undefined;
|
|
52
|
-
global?: boolean | undefined;
|
|
53
|
-
optional?: boolean | undefined;
|
|
29
|
+
getMany?: boolean | undefined;
|
|
30
|
+
isDependency?: boolean | undefined;
|
|
31
|
+
strictMode?: boolean | undefined;
|
|
54
32
|
}>;
|
|
55
33
|
export declare class LoadDocumentService implements ServiceInterface {
|
|
56
34
|
private documentService;
|
|
57
35
|
private workflowService;
|
|
58
|
-
private functionCallService;
|
|
59
36
|
private readonly logger;
|
|
60
|
-
constructor(documentService: DocumentService, workflowService: WorkflowService
|
|
61
|
-
|
|
62
|
-
applyModifiers(props: z.infer<typeof schema>, entities: DocumentEntity[]): any[];
|
|
63
|
-
getDocumentsByQuery(props: z.infer<typeof schema>, pipelineId: string, workspaceId: string, workflow: WorkflowEntity): Promise<DocumentEntity[]>;
|
|
37
|
+
constructor(documentService: DocumentService, workflowService: WorkflowService);
|
|
38
|
+
getDocumentsByQuery(props: z.infer<typeof schema>, pipelineId: string, workspaceId: string, workflow: WorkflowEntity): Promise<DocumentEntity[] | DocumentEntity | null>;
|
|
64
39
|
updateWorkflowDependenciesHash(workflow: WorkflowEntity): void;
|
|
65
|
-
|
|
40
|
+
trackDependencies(workflow: WorkflowEntity, transitionData: TransitionMetadataInterface, result: DocumentEntity[] | DocumentEntity): void;
|
|
66
41
|
apply(props: z.infer<typeof schema>, workflow: WorkflowEntity | undefined, context: ContextInterface, transitionData: TransitionMetadataInterface): Promise<ServiceCallResult>;
|
|
67
42
|
}
|
|
68
43
|
export {};
|