@elyx-code/project-logic-tree 0.0.6047 → 0.0.6049
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/definitions/built-in-base-entities/ids.d.ts +73 -1
- package/dist/definitions/built-in-base-entities/loops/counted/body.d.ts +4 -0
- package/dist/definitions/built-in-base-entities/loops/counted/loop.d.ts +2 -0
- package/dist/definitions/built-in-base-entities/loops/list/body.d.ts +4 -0
- package/dist/definitions/built-in-base-entities/loops/list/loop.d.ts +2 -0
- package/dist/definitions/built-in-base-entities/loops/manual-flow/body.d.ts +4 -0
- package/dist/definitions/built-in-base-entities/loops/manual-flow/loop.d.ts +3 -1
- package/dist/definitions/built-in-base-entities/loops/object-keys-loop/body.d.ts +4 -0
- package/dist/definitions/built-in-base-entities/loops/object-keys-loop/loop.d.ts +2 -0
- package/dist/definitions/built-in-base-entities/loops/object-values-loop/body.d.ts +4 -0
- package/dist/definitions/built-in-base-entities/loops/object-values-loop/loop.d.ts +2 -0
- package/dist/definitions/built-in-base-entities/loops/string/body.d.ts +4 -0
- package/dist/definitions/built-in-base-entities/loops/string/loop.d.ts +2 -0
- package/dist/definitions/built-in-base-entities/operations/function-execution/parallel.d.ts +2 -0
- package/dist/definitions/built-in-base-entities/operations/function-execution/sequential.d.ts +2 -0
- package/dist/definitions/built-in-base-entities/operations/http-request/http-request.d.ts +13 -13
- package/dist/definitions/built-in-base-entities/operations/number/index.d.ts +1 -0
- package/dist/definitions/built-in-base-entities/operations/number/number-addition.d.ts +3 -8
- package/dist/definitions/built-in-base-entities/operations/number/number-subtraction.d.ts +20 -0
- package/dist/definitions/built-in-base-entities/operations/string/index.d.ts +2 -1
- package/dist/definitions/built-in-base-entities/operations/string/join-strings.d.ts +27 -0
- package/dist/definitions/built-in-base-entities/operations/string/split-string.d.ts +21 -0
- package/dist/definitions/mock/default-mock/functions/concurrency-and-waits/function-list-variable.d.ts +5 -1
- package/dist/definitions/types/action-descriptor.d.ts +70 -0
- package/dist/definitions/types/data-type.d.ts +4 -6
- package/dist/definitions/types/function.d.ts +2 -83
- package/dist/definitions/types/index.d.ts +4 -2
- package/dist/definitions/types/operation.d.ts +2 -2
- package/dist/index.js +12313 -11544
- package/dist/index.umd.cjs +219 -221
- package/dist/tree/built-in/operations/custom-entity/create-new.d.ts +5 -0
- package/dist/tree/built-in/operations/custom-entity/index.d.ts +2 -0
- package/dist/tree/built-in/operations/custom-entity/validate-data.d.ts +5 -0
- package/dist/tree/built-in/operations/function-execution/parallel.d.ts +3 -5
- package/dist/tree/built-in/operations/function-execution/sequential.d.ts +3 -5
- package/dist/tree/built-in/operations/function-execution/wait.d.ts +3 -5
- package/dist/tree/built-in/operations/http-request/http-request.d.ts +5 -0
- package/dist/tree/built-in/operations/http-request/index.d.ts +1 -0
- package/dist/tree/built-in/operations/list/append.d.ts +5 -0
- package/dist/tree/built-in/operations/list/get-last.d.ts +5 -0
- package/dist/tree/built-in/operations/list/index.d.ts +4 -0
- package/dist/tree/built-in/operations/list/join-lists.d.ts +5 -0
- package/dist/tree/built-in/operations/list/split-list.d.ts +5 -0
- package/dist/tree/built-in/operations/number/index.d.ts +1 -0
- package/dist/tree/built-in/operations/number/number-addition.d.ts +5 -0
- package/dist/tree/built-in/operations/string/index.d.ts +1 -0
- package/dist/tree/built-in/operations/string/join-strings.d.ts +5 -0
- package/dist/tree/state/action-descriptor/action-descriptor.d.ts +5 -15
- package/dist/tree/state/action-descriptor/validation/validation-schema.d.ts +13 -90
- package/dist/tree/state/data-type/data-type.d.ts +3 -3
- package/dist/tree/state/data-type/validation/validation-schema.d.ts +0 -50
- package/dist/tree/state/global-event/validation/validation-schema.d.ts +20 -116
- package/dist/tree/utils/data-type.d.ts +1 -2
- package/package.json +1 -1
- package/dist/definitions/built-in-base-entities/operations/string/join-string.d.ts +0 -25
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EntityType, IActionDescriptorTransfer, ExecutionOperations, IActionDescriptor } from '../../../../definitions';
|
|
2
|
-
import { ValueDescriptorState, ActionDescriptorState, ProjectState
|
|
2
|
+
import { ValueDescriptorState, ActionDescriptorState, ProjectState } from '../../../state';
|
|
3
3
|
|
|
4
4
|
export declare class ParallelExecutionOperation extends ActionDescriptorState {
|
|
5
5
|
readonly id = ExecutionOperations.Parallel;
|
|
@@ -9,11 +9,9 @@ export declare class ParallelExecutionOperation extends ActionDescriptorState {
|
|
|
9
9
|
readonly autoexecutable = true;
|
|
10
10
|
initialData: IActionDescriptor | IActionDescriptorTransfer;
|
|
11
11
|
readonly type: EntityType.ActionDescriptor;
|
|
12
|
-
readonly
|
|
13
|
-
readonly
|
|
12
|
+
readonly inputs: ValueDescriptorState[];
|
|
13
|
+
readonly outputs: ValueDescriptorState[];
|
|
14
14
|
readonly error: ValueDescriptorState | null;
|
|
15
|
-
readonly dynamicArgumentTypes: DataTypeState | null;
|
|
16
|
-
readonly dynamicReturnTypes: DataTypeState | null;
|
|
17
15
|
project: ProjectState;
|
|
18
16
|
constructor(parentProjectState: ProjectState);
|
|
19
17
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EntityType, IActionDescriptorTransfer, ExecutionOperations, IActionDescriptor } from '../../../../definitions';
|
|
2
2
|
import { ActionDescriptorState } from '../../../state/action-descriptor';
|
|
3
|
-
import { ValueDescriptorState, ProjectState
|
|
3
|
+
import { ValueDescriptorState, ProjectState } from '../../../state';
|
|
4
4
|
|
|
5
5
|
export declare class SequentialExecutionOperation extends ActionDescriptorState {
|
|
6
6
|
readonly id = ExecutionOperations.Sequential;
|
|
@@ -10,11 +10,9 @@ export declare class SequentialExecutionOperation extends ActionDescriptorState
|
|
|
10
10
|
readonly autoexecutable = true;
|
|
11
11
|
initialData: IActionDescriptor | IActionDescriptorTransfer;
|
|
12
12
|
readonly type: EntityType.ActionDescriptor;
|
|
13
|
-
readonly
|
|
14
|
-
readonly
|
|
13
|
+
readonly inputs: ValueDescriptorState[];
|
|
14
|
+
readonly outputs: ValueDescriptorState[];
|
|
15
15
|
readonly error: ValueDescriptorState | null;
|
|
16
|
-
readonly dynamicArgumentTypes: DataTypeState | null;
|
|
17
|
-
readonly dynamicReturnTypes: DataTypeState | null;
|
|
18
16
|
project: ProjectState;
|
|
19
17
|
constructor(parentProjectState: ProjectState);
|
|
20
18
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EntityType, IActionDescriptorTransfer, IActionDescriptor } from '../../../../definitions';
|
|
2
|
-
import { ActionDescriptorState, ProjectState, ValueDescriptorState
|
|
2
|
+
import { ActionDescriptorState, ProjectState, ValueDescriptorState } from '../../../state';
|
|
3
3
|
|
|
4
4
|
export declare class WaitOperation extends ActionDescriptorState {
|
|
5
5
|
readonly id: string;
|
|
@@ -9,11 +9,9 @@ export declare class WaitOperation extends ActionDescriptorState {
|
|
|
9
9
|
readonly autoexecutable = false;
|
|
10
10
|
initialData: IActionDescriptor | IActionDescriptorTransfer;
|
|
11
11
|
readonly type: EntityType.ActionDescriptor;
|
|
12
|
-
readonly
|
|
13
|
-
readonly
|
|
12
|
+
readonly inputs: ValueDescriptorState[];
|
|
13
|
+
readonly outputs: ValueDescriptorState[];
|
|
14
14
|
readonly error: ValueDescriptorState | null;
|
|
15
|
-
readonly dynamicArgumentTypes: DataTypeState | null;
|
|
16
|
-
readonly dynamicReturnTypes: DataTypeState | null;
|
|
17
15
|
project: ProjectState;
|
|
18
16
|
constructor(parentProjectState: ProjectState);
|
|
19
17
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './http-request';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './number-addition';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './join-strings';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ElementGenerationTarget, ElementShallowTransfer, EntityId, EntityType, EntityVersion,
|
|
1
|
+
import { ElementGenerationTarget, ElementShallowTransfer, EntityId, EntityType, EntityVersion, IActionDescriptor, IActionDescriptorGenerationTarget, IActionDescriptorReference, IActionDescriptorShallowTransfer, IActionDescriptorTransfer, IFunctionDeclarationTransfer, ActionDescriptorTypesUnion } from '../../../definitions';
|
|
2
2
|
import { ZodError } from 'zod';
|
|
3
3
|
import { BaseState, ChildEntityState, UserManagedEntityStateFunctionality } from '../base';
|
|
4
4
|
import { ProjectState } from '../project/project';
|
|
@@ -23,14 +23,10 @@ export declare class ActionDescriptorState implements IActionDescriptor, UserMan
|
|
|
23
23
|
version: EntityVersion;
|
|
24
24
|
name: string;
|
|
25
25
|
description: string | null;
|
|
26
|
-
argumentsType: ActionDescriptorValuesType;
|
|
27
|
-
returnsType: ActionDescriptorValuesType;
|
|
28
26
|
readonly type: EntityType.ActionDescriptor;
|
|
29
|
-
|
|
30
|
-
|
|
27
|
+
inputs: ValueDescriptorState[];
|
|
28
|
+
outputs: ValueDescriptorState[];
|
|
31
29
|
error: ValueDescriptorState | null;
|
|
32
|
-
dynamicArgumentTypes: DataTypeState | null;
|
|
33
|
-
dynamicReturnTypes: DataTypeState | null;
|
|
34
30
|
implementation: ((...inputs: any[]) => IPrimitiveExecutionResult | Promise<IPrimitiveExecutionResult>) | null;
|
|
35
31
|
parent: CustomEntityState | PrimitiveEntityState | BuiltInBaseEntityState | DataTypeState | null;
|
|
36
32
|
errors: EntityError[];
|
|
@@ -61,10 +57,6 @@ export declare class ActionDescriptorState implements IActionDescriptor, UserMan
|
|
|
61
57
|
};
|
|
62
58
|
addSelfToProject(): IChangeSet<ActionDescriptorState>;
|
|
63
59
|
setParent(parent: CustomEntityState | PrimitiveEntityState | BuiltInBaseEntityState | DataTypeState): ActionDescriptorState;
|
|
64
|
-
setDynamicReturnTypes(dataType: DataTypeState): ActionDescriptorState;
|
|
65
|
-
setDynamicArgumentTypes(dataType: DataTypeState): ActionDescriptorState;
|
|
66
|
-
removeDynamicArgumentTypes(): ActionDescriptorState;
|
|
67
|
-
removeDynamicReturnTypes(): ActionDescriptorState;
|
|
68
60
|
initChildren(): ActionDescriptorState;
|
|
69
61
|
subscribe(): ActionDescriptorState;
|
|
70
62
|
unsubscribe(): ActionDescriptorState;
|
|
@@ -107,11 +99,9 @@ export declare class ActionDescriptorState implements IActionDescriptor, UserMan
|
|
|
107
99
|
getErrors(): EntityError[];
|
|
108
100
|
getShallowErrors(): EntityError[];
|
|
109
101
|
clone(parent?: CustomEntityState | PrimitiveEntityState | BuiltInBaseEntityState | DataTypeState | null, newId?: string | null, subscribe?: boolean): ActionDescriptorState;
|
|
110
|
-
|
|
111
|
-
setDynamicReturnsDataType(dataType: DataTypeState): ActionDescriptorState;
|
|
112
|
-
addFixedArgument(argument: ValueDescriptorState): ActionDescriptorState;
|
|
102
|
+
addInput(argument: ValueDescriptorState): ActionDescriptorState;
|
|
113
103
|
removeFixedArgument(argument: ValueDescriptorState): ActionDescriptorState;
|
|
114
|
-
|
|
104
|
+
addOutput(output: ValueDescriptorState): ActionDescriptorState;
|
|
115
105
|
removeFixedReturn(output: ValueDescriptorState): ActionDescriptorState;
|
|
116
106
|
}
|
|
117
107
|
export type ActionDescriptorPayloadUnion = ActionDescriptorState | ActionDescriptorTypesUnion;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { EntityType
|
|
1
|
+
import { EntityType } from '../../../../definitions';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
|
|
4
|
-
export declare function getOperationTypesSchema(): z.ZodEnum<[ActionDescriptorValuesType.Dynamic, ActionDescriptorValuesType.Fixed, ActionDescriptorValuesType.None]>;
|
|
5
4
|
export declare function getActionDescriptorTypeSchema(): z.ZodUnion<[z.ZodObject<{
|
|
6
5
|
type: z.ZodLiteral<EntityType.ActionDescriptor>;
|
|
7
6
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -30,30 +29,22 @@ export declare function getActionDescriptorBaseSchema(): z.ZodObject<{
|
|
|
30
29
|
type: z.ZodLiteral<EntityType.ActionDescriptor>;
|
|
31
30
|
name: z.ZodString;
|
|
32
31
|
description: z.ZodNullable<z.ZodString>;
|
|
33
|
-
argumentsType: z.ZodEnum<[ActionDescriptorValuesType.Dynamic, ActionDescriptorValuesType.Fixed, ActionDescriptorValuesType.None]>;
|
|
34
|
-
returnsType: z.ZodEnum<[ActionDescriptorValuesType.Dynamic, ActionDescriptorValuesType.Fixed, ActionDescriptorValuesType.None]>;
|
|
35
32
|
}, "strip", z.ZodTypeAny, {
|
|
36
33
|
id: string;
|
|
37
34
|
type: EntityType.ActionDescriptor;
|
|
38
35
|
name: string;
|
|
39
36
|
description: string | null;
|
|
40
|
-
argumentsType: ActionDescriptorValuesType.Fixed | ActionDescriptorValuesType.None | ActionDescriptorValuesType.Dynamic;
|
|
41
|
-
returnsType: ActionDescriptorValuesType.Fixed | ActionDescriptorValuesType.None | ActionDescriptorValuesType.Dynamic;
|
|
42
37
|
}, {
|
|
43
38
|
id: string;
|
|
44
39
|
type: EntityType.ActionDescriptor;
|
|
45
40
|
name: string;
|
|
46
41
|
description: string | null;
|
|
47
|
-
argumentsType: ActionDescriptorValuesType.Fixed | ActionDescriptorValuesType.None | ActionDescriptorValuesType.Dynamic;
|
|
48
|
-
returnsType: ActionDescriptorValuesType.Fixed | ActionDescriptorValuesType.None | ActionDescriptorValuesType.Dynamic;
|
|
49
42
|
}>;
|
|
50
43
|
export declare function getActionDescriptorMetaShema(): z.ZodObject<z.objectUtil.extendShape<{
|
|
51
44
|
id: z.ZodString;
|
|
52
45
|
type: z.ZodLiteral<EntityType.ActionDescriptor>;
|
|
53
46
|
name: z.ZodString;
|
|
54
47
|
description: z.ZodNullable<z.ZodString>;
|
|
55
|
-
argumentsType: z.ZodEnum<[ActionDescriptorValuesType.Dynamic, ActionDescriptorValuesType.Fixed, ActionDescriptorValuesType.None]>;
|
|
56
|
-
returnsType: z.ZodEnum<[ActionDescriptorValuesType.Dynamic, ActionDescriptorValuesType.Fixed, ActionDescriptorValuesType.None]>;
|
|
57
48
|
}, {
|
|
58
49
|
version: z.ZodNumber;
|
|
59
50
|
}>, "strip", z.ZodTypeAny, {
|
|
@@ -62,68 +53,44 @@ export declare function getActionDescriptorMetaShema(): z.ZodObject<z.objectUtil
|
|
|
62
53
|
name: string;
|
|
63
54
|
description: string | null;
|
|
64
55
|
version: number;
|
|
65
|
-
argumentsType: ActionDescriptorValuesType.Fixed | ActionDescriptorValuesType.None | ActionDescriptorValuesType.Dynamic;
|
|
66
|
-
returnsType: ActionDescriptorValuesType.Fixed | ActionDescriptorValuesType.None | ActionDescriptorValuesType.Dynamic;
|
|
67
56
|
}, {
|
|
68
57
|
id: string;
|
|
69
58
|
type: EntityType.ActionDescriptor;
|
|
70
59
|
name: string;
|
|
71
60
|
description: string | null;
|
|
72
61
|
version: number;
|
|
73
|
-
argumentsType: ActionDescriptorValuesType.Fixed | ActionDescriptorValuesType.None | ActionDescriptorValuesType.Dynamic;
|
|
74
|
-
returnsType: ActionDescriptorValuesType.Fixed | ActionDescriptorValuesType.None | ActionDescriptorValuesType.Dynamic;
|
|
75
62
|
}>;
|
|
76
63
|
export declare function getActionDescriptorGenerationTargetSchema(): z.ZodObject<z.objectUtil.extendShape<{
|
|
77
64
|
id: z.ZodString;
|
|
78
65
|
type: z.ZodLiteral<EntityType.ActionDescriptor>;
|
|
79
66
|
name: z.ZodString;
|
|
80
67
|
description: z.ZodNullable<z.ZodString>;
|
|
81
|
-
argumentsType: z.ZodEnum<[ActionDescriptorValuesType.Dynamic, ActionDescriptorValuesType.Fixed, ActionDescriptorValuesType.None]>;
|
|
82
|
-
returnsType: z.ZodEnum<[ActionDescriptorValuesType.Dynamic, ActionDescriptorValuesType.Fixed, ActionDescriptorValuesType.None]>;
|
|
83
68
|
}, {}>, "strip", z.ZodTypeAny, {
|
|
84
69
|
id: string;
|
|
85
70
|
type: EntityType.ActionDescriptor;
|
|
86
71
|
name: string;
|
|
87
72
|
description: string | null;
|
|
88
|
-
argumentsType: ActionDescriptorValuesType.Fixed | ActionDescriptorValuesType.None | ActionDescriptorValuesType.Dynamic;
|
|
89
|
-
returnsType: ActionDescriptorValuesType.Fixed | ActionDescriptorValuesType.None | ActionDescriptorValuesType.Dynamic;
|
|
90
73
|
}, {
|
|
91
74
|
id: string;
|
|
92
75
|
type: EntityType.ActionDescriptor;
|
|
93
76
|
name: string;
|
|
94
77
|
description: string | null;
|
|
95
|
-
argumentsType: ActionDescriptorValuesType.Fixed | ActionDescriptorValuesType.None | ActionDescriptorValuesType.Dynamic;
|
|
96
|
-
returnsType: ActionDescriptorValuesType.Fixed | ActionDescriptorValuesType.None | ActionDescriptorValuesType.Dynamic;
|
|
97
78
|
}>;
|
|
98
79
|
export declare function getActionDescriptorNestedEntitiesSchema(): z.ZodObject<{
|
|
99
|
-
|
|
80
|
+
inputs: z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
100
81
|
type: z.ZodLiteral<EntityType.ValueDescriptor>;
|
|
101
82
|
}, "strip", z.ZodTypeAny, {
|
|
102
83
|
type: EntityType.ValueDescriptor;
|
|
103
84
|
}, {
|
|
104
85
|
type: EntityType.ValueDescriptor;
|
|
105
86
|
}>, z.ZodRecord<z.ZodString, z.ZodAny>]>, "many">;
|
|
106
|
-
|
|
87
|
+
outputs: z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
107
88
|
type: z.ZodLiteral<EntityType.ValueDescriptor>;
|
|
108
89
|
}, "strip", z.ZodTypeAny, {
|
|
109
90
|
type: EntityType.ValueDescriptor;
|
|
110
91
|
}, {
|
|
111
92
|
type: EntityType.ValueDescriptor;
|
|
112
93
|
}>, z.ZodRecord<z.ZodString, z.ZodAny>]>, "many">;
|
|
113
|
-
dynamicArgumentTypes: z.ZodNullable<z.ZodUnion<[z.ZodObject<{
|
|
114
|
-
type: z.ZodLiteral<EntityType.DataType>;
|
|
115
|
-
}, "strip", z.ZodTypeAny, {
|
|
116
|
-
type: EntityType.DataType;
|
|
117
|
-
}, {
|
|
118
|
-
type: EntityType.DataType;
|
|
119
|
-
}>, z.ZodRecord<z.ZodString, z.ZodAny>]>>;
|
|
120
|
-
dynamicReturnTypes: z.ZodNullable<z.ZodUnion<[z.ZodObject<{
|
|
121
|
-
type: z.ZodLiteral<EntityType.DataType>;
|
|
122
|
-
}, "strip", z.ZodTypeAny, {
|
|
123
|
-
type: EntityType.DataType;
|
|
124
|
-
}, {
|
|
125
|
-
type: EntityType.DataType;
|
|
126
|
-
}>, z.ZodRecord<z.ZodString, z.ZodAny>]>>;
|
|
127
94
|
parent: z.ZodNullable<z.ZodUnion<[z.ZodObject<{
|
|
128
95
|
entityType: z.ZodLiteral<EntityType.Project>;
|
|
129
96
|
entityId: z.ZodString;
|
|
@@ -207,18 +174,12 @@ export declare function getActionDescriptorNestedEntitiesSchema(): z.ZodObject<{
|
|
|
207
174
|
entityType: EntityType.Project;
|
|
208
175
|
entityId: string;
|
|
209
176
|
} | null;
|
|
210
|
-
|
|
177
|
+
inputs: ({
|
|
211
178
|
type: EntityType.ValueDescriptor;
|
|
212
179
|
} | Record<string, any>)[];
|
|
213
|
-
|
|
180
|
+
outputs: ({
|
|
214
181
|
type: EntityType.ValueDescriptor;
|
|
215
182
|
} | Record<string, any>)[];
|
|
216
|
-
dynamicArgumentTypes: Record<string, any> | {
|
|
217
|
-
type: EntityType.DataType;
|
|
218
|
-
} | null;
|
|
219
|
-
dynamicReturnTypes: Record<string, any> | {
|
|
220
|
-
type: EntityType.DataType;
|
|
221
|
-
} | null;
|
|
222
183
|
}, {
|
|
223
184
|
parent: {
|
|
224
185
|
id: string;
|
|
@@ -241,57 +202,35 @@ export declare function getActionDescriptorNestedEntitiesSchema(): z.ZodObject<{
|
|
|
241
202
|
entityType: EntityType.Project;
|
|
242
203
|
entityId: string;
|
|
243
204
|
} | null;
|
|
244
|
-
|
|
205
|
+
inputs: ({
|
|
245
206
|
type: EntityType.ValueDescriptor;
|
|
246
207
|
} | Record<string, any>)[];
|
|
247
|
-
|
|
208
|
+
outputs: ({
|
|
248
209
|
type: EntityType.ValueDescriptor;
|
|
249
210
|
} | Record<string, any>)[];
|
|
250
|
-
dynamicArgumentTypes: Record<string, any> | {
|
|
251
|
-
type: EntityType.DataType;
|
|
252
|
-
} | null;
|
|
253
|
-
dynamicReturnTypes: Record<string, any> | {
|
|
254
|
-
type: EntityType.DataType;
|
|
255
|
-
} | null;
|
|
256
211
|
}>;
|
|
257
212
|
export declare function getActionDescriptorSchema(): z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
258
213
|
id: z.ZodString;
|
|
259
214
|
type: z.ZodLiteral<EntityType.ActionDescriptor>;
|
|
260
215
|
name: z.ZodString;
|
|
261
216
|
description: z.ZodNullable<z.ZodString>;
|
|
262
|
-
argumentsType: z.ZodEnum<[ActionDescriptorValuesType.Dynamic, ActionDescriptorValuesType.Fixed, ActionDescriptorValuesType.None]>;
|
|
263
|
-
returnsType: z.ZodEnum<[ActionDescriptorValuesType.Dynamic, ActionDescriptorValuesType.Fixed, ActionDescriptorValuesType.None]>;
|
|
264
217
|
}, {
|
|
265
218
|
version: z.ZodNumber;
|
|
266
219
|
}>, {
|
|
267
|
-
|
|
220
|
+
inputs: z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
268
221
|
type: z.ZodLiteral<EntityType.ValueDescriptor>;
|
|
269
222
|
}, "strip", z.ZodTypeAny, {
|
|
270
223
|
type: EntityType.ValueDescriptor;
|
|
271
224
|
}, {
|
|
272
225
|
type: EntityType.ValueDescriptor;
|
|
273
226
|
}>, z.ZodRecord<z.ZodString, z.ZodAny>]>, "many">;
|
|
274
|
-
|
|
227
|
+
outputs: z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
275
228
|
type: z.ZodLiteral<EntityType.ValueDescriptor>;
|
|
276
229
|
}, "strip", z.ZodTypeAny, {
|
|
277
230
|
type: EntityType.ValueDescriptor;
|
|
278
231
|
}, {
|
|
279
232
|
type: EntityType.ValueDescriptor;
|
|
280
233
|
}>, z.ZodRecord<z.ZodString, z.ZodAny>]>, "many">;
|
|
281
|
-
dynamicArgumentTypes: z.ZodNullable<z.ZodUnion<[z.ZodObject<{
|
|
282
|
-
type: z.ZodLiteral<EntityType.DataType>;
|
|
283
|
-
}, "strip", z.ZodTypeAny, {
|
|
284
|
-
type: EntityType.DataType;
|
|
285
|
-
}, {
|
|
286
|
-
type: EntityType.DataType;
|
|
287
|
-
}>, z.ZodRecord<z.ZodString, z.ZodAny>]>>;
|
|
288
|
-
dynamicReturnTypes: z.ZodNullable<z.ZodUnion<[z.ZodObject<{
|
|
289
|
-
type: z.ZodLiteral<EntityType.DataType>;
|
|
290
|
-
}, "strip", z.ZodTypeAny, {
|
|
291
|
-
type: EntityType.DataType;
|
|
292
|
-
}, {
|
|
293
|
-
type: EntityType.DataType;
|
|
294
|
-
}>, z.ZodRecord<z.ZodString, z.ZodAny>]>>;
|
|
295
234
|
parent: z.ZodNullable<z.ZodUnion<[z.ZodObject<{
|
|
296
235
|
entityType: z.ZodLiteral<EntityType.Project>;
|
|
297
236
|
entityId: z.ZodString;
|
|
@@ -380,20 +319,12 @@ export declare function getActionDescriptorSchema(): z.ZodObject<z.objectUtil.ex
|
|
|
380
319
|
entityId: string;
|
|
381
320
|
} | null;
|
|
382
321
|
version: number;
|
|
383
|
-
|
|
384
|
-
returnsType: ActionDescriptorValuesType.Fixed | ActionDescriptorValuesType.None | ActionDescriptorValuesType.Dynamic;
|
|
385
|
-
fixedArguments: ({
|
|
322
|
+
inputs: ({
|
|
386
323
|
type: EntityType.ValueDescriptor;
|
|
387
324
|
} | Record<string, any>)[];
|
|
388
|
-
|
|
325
|
+
outputs: ({
|
|
389
326
|
type: EntityType.ValueDescriptor;
|
|
390
327
|
} | Record<string, any>)[];
|
|
391
|
-
dynamicArgumentTypes: Record<string, any> | {
|
|
392
|
-
type: EntityType.DataType;
|
|
393
|
-
} | null;
|
|
394
|
-
dynamicReturnTypes: Record<string, any> | {
|
|
395
|
-
type: EntityType.DataType;
|
|
396
|
-
} | null;
|
|
397
328
|
}, {
|
|
398
329
|
id: string;
|
|
399
330
|
type: EntityType.ActionDescriptor;
|
|
@@ -421,18 +352,10 @@ export declare function getActionDescriptorSchema(): z.ZodObject<z.objectUtil.ex
|
|
|
421
352
|
entityId: string;
|
|
422
353
|
} | null;
|
|
423
354
|
version: number;
|
|
424
|
-
|
|
425
|
-
returnsType: ActionDescriptorValuesType.Fixed | ActionDescriptorValuesType.None | ActionDescriptorValuesType.Dynamic;
|
|
426
|
-
fixedArguments: ({
|
|
355
|
+
inputs: ({
|
|
427
356
|
type: EntityType.ValueDescriptor;
|
|
428
357
|
} | Record<string, any>)[];
|
|
429
|
-
|
|
358
|
+
outputs: ({
|
|
430
359
|
type: EntityType.ValueDescriptor;
|
|
431
360
|
} | Record<string, any>)[];
|
|
432
|
-
dynamicArgumentTypes: Record<string, any> | {
|
|
433
|
-
type: EntityType.DataType;
|
|
434
|
-
} | null;
|
|
435
|
-
dynamicReturnTypes: Record<string, any> | {
|
|
436
|
-
type: EntityType.DataType;
|
|
437
|
-
} | null;
|
|
438
361
|
}>;
|
|
@@ -34,7 +34,7 @@ export declare class DataTypeState implements IDataType, UserManagedEntityStateF
|
|
|
34
34
|
orChildrenGroup: DataTypeState[] | null;
|
|
35
35
|
project: ProjectState;
|
|
36
36
|
errors: EntityError[];
|
|
37
|
-
parent: PropertyState | ArgumentDeclarationState | ReturnDeclarationState | VariableDeclarationState |
|
|
37
|
+
parent: PropertyState | ArgumentDeclarationState | ReturnDeclarationState | VariableDeclarationState | ValueDescriptorState | DataTypeState;
|
|
38
38
|
initialized: boolean;
|
|
39
39
|
inferred: boolean;
|
|
40
40
|
constructor(initialDataTypeData: IDataType | IDataTypeTransfer, parentProjectState: ProjectState);
|
|
@@ -61,7 +61,7 @@ export declare class DataTypeState implements IDataType, UserManagedEntityStateF
|
|
|
61
61
|
modifiedData: Partial<IDataTypeGenerationTarget>;
|
|
62
62
|
};
|
|
63
63
|
addSelfToProject(): IChangeSet<DataTypeState>;
|
|
64
|
-
setParent(parent: PropertyState | ArgumentDeclarationState | ReturnDeclarationState | VariableDeclarationState |
|
|
64
|
+
setParent(parent: PropertyState | ArgumentDeclarationState | ReturnDeclarationState | VariableDeclarationState | ValueDescriptorState | DataTypeState): DataTypeState;
|
|
65
65
|
removeChildGroup(child: DataTypeState): DataTypeState;
|
|
66
66
|
initChildren(): DataTypeState;
|
|
67
67
|
subscribe(): DataTypeState;
|
|
@@ -100,7 +100,7 @@ export declare class DataTypeState implements IDataType, UserManagedEntityStateF
|
|
|
100
100
|
};
|
|
101
101
|
getErrors(): EntityError[];
|
|
102
102
|
getShallowErrors(): EntityError[];
|
|
103
|
-
clone(parent?: PropertyState | VariableDeclarationState | ArgumentDeclarationState | ReturnDeclarationState |
|
|
103
|
+
clone(parent?: PropertyState | VariableDeclarationState | ArgumentDeclarationState | ReturnDeclarationState | ValueDescriptorState | DataTypeState | null, newId?: string | null, subscribe?: boolean): DataTypeState;
|
|
104
104
|
merge(sourceEntity: DataTypeState): IChangeSet<DataTypeState>;
|
|
105
105
|
addToAndGroup(child: DataTypeState): DataTypeState;
|
|
106
106
|
addToOrGroup(child: DataTypeState): DataTypeState;
|
|
@@ -5086,21 +5086,6 @@ export declare function getDataTypeNestedEntitiesSchema(): z.ZodObject<{
|
|
|
5086
5086
|
entityType: EntityType.ReturnDeclaration;
|
|
5087
5087
|
entityId: string;
|
|
5088
5088
|
}>]>]>, z.ZodObject<{
|
|
5089
|
-
id: z.ZodString;
|
|
5090
|
-
type: z.ZodLiteral<EntityType.GenericReference>;
|
|
5091
|
-
entityId: z.ZodString;
|
|
5092
|
-
entityType: z.ZodLiteral<EntityType.ActionDescriptor>;
|
|
5093
|
-
}, "strip", z.ZodTypeAny, {
|
|
5094
|
-
id: string;
|
|
5095
|
-
type: EntityType.GenericReference;
|
|
5096
|
-
entityType: EntityType.ActionDescriptor;
|
|
5097
|
-
entityId: string;
|
|
5098
|
-
}, {
|
|
5099
|
-
id: string;
|
|
5100
|
-
type: EntityType.GenericReference;
|
|
5101
|
-
entityType: EntityType.ActionDescriptor;
|
|
5102
|
-
entityId: string;
|
|
5103
|
-
}>, z.ZodObject<{
|
|
5104
5089
|
id: z.ZodString;
|
|
5105
5090
|
type: z.ZodLiteral<EntityType.GenericReference>;
|
|
5106
5091
|
entityId: z.ZodString;
|
|
@@ -5131,11 +5116,6 @@ export declare function getDataTypeNestedEntitiesSchema(): z.ZodObject<{
|
|
|
5131
5116
|
type: EntityType.GenericReference;
|
|
5132
5117
|
entityType: EntityType.ValueDescriptor;
|
|
5133
5118
|
entityId: string;
|
|
5134
|
-
} | {
|
|
5135
|
-
id: string;
|
|
5136
|
-
type: EntityType.GenericReference;
|
|
5137
|
-
entityType: EntityType.ActionDescriptor;
|
|
5138
|
-
entityId: string;
|
|
5139
5119
|
} | {
|
|
5140
5120
|
id: string;
|
|
5141
5121
|
type: EntityType.GenericReference;
|
|
@@ -5620,11 +5600,6 @@ export declare function getDataTypeNestedEntitiesSchema(): z.ZodObject<{
|
|
|
5620
5600
|
type: EntityType.GenericReference;
|
|
5621
5601
|
entityType: EntityType.ValueDescriptor;
|
|
5622
5602
|
entityId: string;
|
|
5623
|
-
} | {
|
|
5624
|
-
id: string;
|
|
5625
|
-
type: EntityType.GenericReference;
|
|
5626
|
-
entityType: EntityType.ActionDescriptor;
|
|
5627
|
-
entityId: string;
|
|
5628
5603
|
} | {
|
|
5629
5604
|
id: string;
|
|
5630
5605
|
type: EntityType.GenericReference;
|
|
@@ -11088,21 +11063,6 @@ export declare function getDataTypeSchema(): z.ZodObject<z.objectUtil.extendShap
|
|
|
11088
11063
|
entityType: EntityType.ReturnDeclaration;
|
|
11089
11064
|
entityId: string;
|
|
11090
11065
|
}>]>]>, z.ZodObject<{
|
|
11091
|
-
id: z.ZodString;
|
|
11092
|
-
type: z.ZodLiteral<EntityType.GenericReference>;
|
|
11093
|
-
entityId: z.ZodString;
|
|
11094
|
-
entityType: z.ZodLiteral<EntityType.ActionDescriptor>;
|
|
11095
|
-
}, "strip", z.ZodTypeAny, {
|
|
11096
|
-
id: string;
|
|
11097
|
-
type: EntityType.GenericReference;
|
|
11098
|
-
entityType: EntityType.ActionDescriptor;
|
|
11099
|
-
entityId: string;
|
|
11100
|
-
}, {
|
|
11101
|
-
id: string;
|
|
11102
|
-
type: EntityType.GenericReference;
|
|
11103
|
-
entityType: EntityType.ActionDescriptor;
|
|
11104
|
-
entityId: string;
|
|
11105
|
-
}>, z.ZodObject<{
|
|
11106
11066
|
id: z.ZodString;
|
|
11107
11067
|
type: z.ZodLiteral<EntityType.GenericReference>;
|
|
11108
11068
|
entityId: z.ZodString;
|
|
@@ -11135,11 +11095,6 @@ export declare function getDataTypeSchema(): z.ZodObject<z.objectUtil.extendShap
|
|
|
11135
11095
|
type: EntityType.GenericReference;
|
|
11136
11096
|
entityType: EntityType.ValueDescriptor;
|
|
11137
11097
|
entityId: string;
|
|
11138
|
-
} | {
|
|
11139
|
-
id: string;
|
|
11140
|
-
type: EntityType.GenericReference;
|
|
11141
|
-
entityType: EntityType.ActionDescriptor;
|
|
11142
|
-
entityId: string;
|
|
11143
11098
|
} | {
|
|
11144
11099
|
id: string;
|
|
11145
11100
|
type: EntityType.GenericReference;
|
|
@@ -11632,11 +11587,6 @@ export declare function getDataTypeSchema(): z.ZodObject<z.objectUtil.extendShap
|
|
|
11632
11587
|
type: EntityType.GenericReference;
|
|
11633
11588
|
entityType: EntityType.ValueDescriptor;
|
|
11634
11589
|
entityId: string;
|
|
11635
|
-
} | {
|
|
11636
|
-
id: string;
|
|
11637
|
-
type: EntityType.GenericReference;
|
|
11638
|
-
entityType: EntityType.ActionDescriptor;
|
|
11639
|
-
entityId: string;
|
|
11640
11590
|
} | {
|
|
11641
11591
|
id: string;
|
|
11642
11592
|
type: EntityType.GenericReference;
|