@elyx-code/project-logic-tree 0.0.6113 → 0.0.6115
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/conditions/index.d.ts +1 -0
- package/dist/definitions/built-in-base-entities/entities/execution/index.d.ts +1 -1
- package/dist/definitions/built-in-base-entities/entities/index.d.ts +3 -0
- package/dist/definitions/built-in-base-entities/global-events/index.d.ts +1 -0
- package/dist/definitions/built-in-base-entities/index.d.ts +2 -0
- package/dist/definitions/built-in-base-entities/loops/index.d.ts +3 -0
- package/dist/definitions/built-in-base-entities/operations/index.d.ts +1 -0
- package/dist/definitions/built-in-base-entities/primitive-entities.d.ts +1 -0
- package/dist/definitions/built-in-base-entities/value-descriptors/index.d.ts +3 -0
- package/dist/definitions/mock/default-mock/entities/alt-relational-database/properties.d.ts +2 -2
- package/dist/definitions/mock/default-mock/entities/default-relational-database/properties.d.ts +2 -2
- package/dist/definitions/mock/default-mock/entities/get-company-by-id-endpoint/properties.d.ts +3 -3
- package/dist/definitions/mock/default-mock/events/project-loaded/get-bitcoin-price/get-bitcoin-price-http-call.d.ts +2 -2
- package/dist/definitions/mock/default-mock/functions/concurrency-and-waits/wait.d.ts +2 -2
- package/dist/definitions/mock/default-mock/functions/manual-hello-world-loop/loop/break-statement.d.ts +1 -2
- package/dist/definitions/mock/default-mock/functions/manual-hello-world-loop/loop/loop.d.ts +2 -2
- package/dist/definitions/types/index.d.ts +4 -0
- package/dist/definitions/types/variable.d.ts +2 -2
- package/dist/index.js +25358 -21568
- package/dist/index.umd.cjs +253 -253
- package/dist/tree/state/action-descriptor/action-descriptor.d.ts +18 -14
- package/dist/tree/state/argument-declaration/argument-declaration.d.ts +16 -12
- package/dist/tree/state/argument-declaration/validation/validation-schema.d.ts +4 -4
- package/dist/tree/state/base.d.ts +34 -8
- package/dist/tree/state/break-statement/break-statement.d.ts +17 -14
- package/dist/tree/state/built-in-base-entity/built-in-base-entity.d.ts +10 -10
- package/dist/tree/state/built-in-base-entity/validation-schema.d.ts +10 -10
- package/dist/tree/state/condition/condition.d.ts +18 -13
- package/dist/tree/state/continue-statement/continue-statement.d.ts +17 -14
- package/dist/tree/state/custom-entity/custom-entity.d.ts +21 -13
- package/dist/tree/state/custom-entity/validation/validation-schema.d.ts +12 -12
- package/dist/tree/state/data-type/data-type.d.ts +16 -12
- package/dist/tree/state/function-call/function-call.d.ts +18 -13
- package/dist/tree/state/function-declaration/function-declaration.d.ts +17 -13
- package/dist/tree/state/function-declaration/validation/validation-schema.d.ts +4 -4
- package/dist/tree/state/global-event/global-event.d.ts +18 -13
- package/dist/tree/state/input-map/input-map.d.ts +19 -15
- package/dist/tree/state/installed-project/installed-project.d.ts +17 -13
- package/dist/tree/state/internal-call/internal-call.d.ts +22 -13
- package/dist/tree/state/literal-value/literal-value.d.ts +16 -12
- package/dist/tree/state/loop/loop.d.ts +18 -13
- package/dist/tree/state/operation/operation.d.ts +18 -13
- package/dist/tree/state/output-map/output-map.d.ts +20 -16
- package/dist/tree/state/primitive-entity/primitive-entity.d.ts +10 -10
- package/dist/tree/state/primitive-entity/validation/validation-schema.d.ts +10 -10
- package/dist/tree/state/project/project.d.ts +17 -12
- package/dist/tree/state/project/project.test.d.ts +1 -0
- package/dist/tree/state/property/property.d.ts +17 -12
- package/dist/tree/state/property/validation/validation-schema.d.ts +12 -12
- package/dist/tree/state/return-declaration/return-declaration.d.ts +16 -12
- package/dist/tree/state/return-statement/return-statement.d.ts +17 -14
- package/dist/tree/state/search/search.d.ts +17 -13
- package/dist/tree/state/store.d.ts +1 -0
- package/dist/tree/state/value-descriptor/value-descriptor.d.ts +17 -13
- package/dist/tree/state/variable-declaration/validation/validation-schema.d.ts +4 -4
- package/dist/tree/state/variable-declaration/variable-declaration.d.ts +17 -13
- package/dist/tree/state/variable-instance/validation/validation-schema.d.ts +4 -4
- package/dist/tree/state/variable-instance/variable-instance.d.ts +17 -13
- package/dist/tree/utils/index.d.ts +96 -4
- package/dist/tree/utils/traverser.d.ts +17 -0
- package/dist/tree/utils/traverser.test.d.ts +1 -0
- package/dist/tree/utils/uuid.d.ts +2 -0
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ElementGenerationTarget, ElementShallowTransfer, EntityId, EntityType, EntityVersion, IActionDescriptor, IActionDescriptorGenerationTarget, IActionDescriptorReference, IActionDescriptorShallowTransfer, IActionDescriptorTransfer, IFunctionDeclarationTransfer, ActionDescriptorTypesUnion } from '../../../definitions';
|
|
2
2
|
import { ZodError } from 'zod';
|
|
3
|
-
import { BaseState, ChildEntityState, UserManagedEntityStateFunctionality } from '../base';
|
|
3
|
+
import { BaseState, ChildEntityState, IEntityPersistanceOptions, IEditableEntityPersistanceRepository, UserManagedEntityStateFunctionality, IEntityJSONCloneOptions, IEntityRecursionOptions } from '../base';
|
|
4
4
|
import { ProjectState } from '../project/project';
|
|
5
5
|
import { DataTypeState } from '../data-type';
|
|
6
6
|
import { ValueDescriptorState } from '../value-descriptor';
|
|
@@ -44,6 +44,7 @@ export declare class ActionDescriptorState implements IActionDescriptor, UserMan
|
|
|
44
44
|
initialized: boolean;
|
|
45
45
|
autoexecutable: boolean;
|
|
46
46
|
constructor(initialFunctionData: IActionDescriptor | IActionDescriptorTransfer, parentProjectState: ProjectState);
|
|
47
|
+
static repository: IEditableEntityPersistanceRepository;
|
|
47
48
|
static MUTABLE_BASE_PROPERTIES: string[];
|
|
48
49
|
static INMUTABLE_BASE_PROPERTIES: string[];
|
|
49
50
|
static BASE_PROPERTIES: string[];
|
|
@@ -69,16 +70,18 @@ export declare class ActionDescriptorState implements IActionDescriptor, UserMan
|
|
|
69
70
|
errors: EntityGenerationError[];
|
|
70
71
|
modifiedData: Partial<IActionDescriptorGenerationTarget>;
|
|
71
72
|
};
|
|
73
|
+
hydrateAncestors(): IChangeSet<ActionDescriptorState>;
|
|
74
|
+
afterAllChildrenInitialized(): IChangeSet<ActionDescriptorState>;
|
|
72
75
|
addSelfToProject(): IChangeSet<ActionDescriptorState>;
|
|
73
76
|
setParent(parent: CustomEntityState | PrimitiveEntityState | BuiltInBaseEntityState | DataTypeState): ActionDescriptorState;
|
|
74
77
|
initChildren(): ActionDescriptorState;
|
|
75
78
|
subscribe(): ActionDescriptorState;
|
|
76
79
|
unsubscribe(): ActionDescriptorState;
|
|
77
80
|
sync(data: Partial<IActionDescriptor>): ActionDescriptorState;
|
|
78
|
-
load(): Promise<ActionDescriptorState>;
|
|
79
|
-
create(): Promise<ActionDescriptorState>;
|
|
80
|
-
update(_
|
|
81
|
-
delete(): Promise<ActionDescriptorState>;
|
|
81
|
+
load(_?: IEntityPersistanceOptions): Promise<ActionDescriptorState>;
|
|
82
|
+
create(_?: IEntityPersistanceOptions): Promise<ActionDescriptorState>;
|
|
83
|
+
update(_?: IEntityPersistanceOptions): Promise<ActionDescriptorState>;
|
|
84
|
+
delete(_?: IEntityPersistanceOptions): Promise<ActionDescriptorState>;
|
|
82
85
|
remove({ ignoreUpstream: _, seenEntities, }?: {
|
|
83
86
|
ignoreUpstream: boolean;
|
|
84
87
|
seenEntities: Set<string>;
|
|
@@ -92,14 +95,15 @@ export declare class ActionDescriptorState implements IActionDescriptor, UserMan
|
|
|
92
95
|
affected: EntityState[];
|
|
93
96
|
self: ActionDescriptorState;
|
|
94
97
|
};
|
|
95
|
-
toFlat(seenEntities?: Set<
|
|
96
|
-
toFlatIds(seenEntities?: Set<
|
|
97
|
-
toJSON(): IActionDescriptorTransfer;
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
98
|
+
toFlat(seenEntities?: Set<EntityId>): EntityState[];
|
|
99
|
+
toFlatIds(seenEntities?: Set<EntityId>): EntityId[];
|
|
100
|
+
toJSON(seenEntities?: Set<EntityId>): IActionDescriptorTransfer | IActionDescriptorReference;
|
|
101
|
+
toJSONClone(options?: IEntityJSONCloneOptions): IActionDescriptorTransfer | IActionDescriptorReference;
|
|
102
|
+
toReference(options?: IEntityRecursionOptions): IActionDescriptorReference;
|
|
103
|
+
toShallowJSON(options?: IEntityRecursionOptions): IActionDescriptorShallowTransfer;
|
|
104
|
+
toFlatJSON(seenEntities?: Set<EntityId>): ElementShallowTransfer[];
|
|
101
105
|
toGenerationTarget(): IActionDescriptorGenerationTarget;
|
|
102
|
-
toFlatGenerationTarget(seenEntities?: Set<
|
|
106
|
+
toFlatGenerationTarget(seenEntities?: Set<EntityId>): ElementGenerationTarget[];
|
|
103
107
|
implementAsFunctionDeclaration(newEntityId: string): IFunctionDeclarationTransfer;
|
|
104
108
|
implementAsLoop(parent?: EntityWithLogicScopeState): LoopState;
|
|
105
109
|
implementAsOperation(parent?: EntityWithLogicScopeState, newId?: string): OperationState;
|
|
@@ -114,8 +118,8 @@ export declare class ActionDescriptorState implements IActionDescriptor, UserMan
|
|
|
114
118
|
getShallowErrors(): EntityError[];
|
|
115
119
|
clone(parent?: CustomEntityState | PrimitiveEntityState | BuiltInBaseEntityState | DataTypeState | null, newId?: string | null, subscribe?: boolean): ActionDescriptorState;
|
|
116
120
|
addInput(argument: ValueDescriptorState): ActionDescriptorState;
|
|
117
|
-
|
|
121
|
+
removeInput(argument: ValueDescriptorState): ActionDescriptorState;
|
|
118
122
|
addOutput(output: ValueDescriptorState): ActionDescriptorState;
|
|
119
|
-
|
|
123
|
+
removeOutput(output: ValueDescriptorState): ActionDescriptorState;
|
|
120
124
|
}
|
|
121
125
|
export type ActionDescriptorPayloadUnion = ActionDescriptorState | ActionDescriptorTypesUnion;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ElementGenerationTarget, ElementShallowTransfer, EntityId, EntityType, EntityVersion, IArgumentDeclaration, IArgumentDeclarationGenerationTarget, IArgumentDeclarationReference, IArgumentDeclarationShallowTransfer, IArgumentDeclarationTransfer, ArgumentDeclarationTypesUnion } from '../../../definitions';
|
|
2
2
|
import { ZodError } from 'zod';
|
|
3
|
-
import { BaseState, ChildEntityState, EntityWithValueClass, UserManagedEntityStateFunctionality, ValueWritingEntityClass } from '../base';
|
|
3
|
+
import { BaseState, ChildEntityState, EntityWithValueClass, IEntityPersistanceOptions, IEditableEntityPersistanceRepository, UserManagedEntityStateFunctionality, ValueWritingEntityClass, IEntityJSONCloneOptions, IEntityRecursionOptions } from '../base';
|
|
4
4
|
import { EntityState, EntryPointEntityState, IChangeSet, ValueReadingEntityState } from '../types';
|
|
5
5
|
import { DataTypeState } from '../data-type';
|
|
6
6
|
import { ProjectState } from '../project/project';
|
|
@@ -27,6 +27,7 @@ export declare class ArgumentDeclarationState implements IArgumentDeclaration, U
|
|
|
27
27
|
initialized: boolean;
|
|
28
28
|
suggestion: boolean;
|
|
29
29
|
constructor(initialArgumentDeclarationData: IArgumentDeclaration | IArgumentDeclarationTransfer, parentProjectState: ProjectState);
|
|
30
|
+
static repository: IEditableEntityPersistanceRepository;
|
|
30
31
|
static MUTABLE_BASE_PROPERTIES: string[];
|
|
31
32
|
static INMUTABLE_BASE_PROPERTIES: string[];
|
|
32
33
|
static BASE_PROPERTIES: string[];
|
|
@@ -49,6 +50,8 @@ export declare class ArgumentDeclarationState implements IArgumentDeclaration, U
|
|
|
49
50
|
errors: EntityGenerationError[];
|
|
50
51
|
modifiedData: Partial<IArgumentDeclarationGenerationTarget>;
|
|
51
52
|
};
|
|
53
|
+
hydrateAncestors(): IChangeSet<ArgumentDeclarationState>;
|
|
54
|
+
afterAllChildrenInitialized(): IChangeSet<ArgumentDeclarationState>;
|
|
52
55
|
addSelfToProject(): IChangeSet<ArgumentDeclarationState>;
|
|
53
56
|
addValueReader(entity: ValueReadingEntityState): ArgumentDeclarationState;
|
|
54
57
|
removeValueReader(valueReader: ValueReadingEntityState): ArgumentDeclarationState;
|
|
@@ -58,10 +61,10 @@ export declare class ArgumentDeclarationState implements IArgumentDeclaration, U
|
|
|
58
61
|
subscribe(): ArgumentDeclarationState;
|
|
59
62
|
unsubscribe(): ArgumentDeclarationState;
|
|
60
63
|
sync(data: Partial<IArgumentDeclaration>): ArgumentDeclarationState;
|
|
61
|
-
load(): Promise<ArgumentDeclarationState>;
|
|
62
|
-
create(): Promise<ArgumentDeclarationState>;
|
|
63
|
-
update(_
|
|
64
|
-
delete(): Promise<ArgumentDeclarationState>;
|
|
64
|
+
load(_?: IEntityPersistanceOptions): Promise<ArgumentDeclarationState>;
|
|
65
|
+
create(_?: IEntityPersistanceOptions): Promise<ArgumentDeclarationState>;
|
|
66
|
+
update(_?: IEntityPersistanceOptions): Promise<ArgumentDeclarationState>;
|
|
67
|
+
delete(_?: IEntityPersistanceOptions): Promise<ArgumentDeclarationState>;
|
|
65
68
|
remove({ ignoreUpstream, seenEntities, }?: {
|
|
66
69
|
ignoreUpstream: boolean;
|
|
67
70
|
seenEntities: Set<string>;
|
|
@@ -75,14 +78,15 @@ export declare class ArgumentDeclarationState implements IArgumentDeclaration, U
|
|
|
75
78
|
affected: EntityState[];
|
|
76
79
|
self: ArgumentDeclarationState;
|
|
77
80
|
};
|
|
78
|
-
toFlat(seenEntities?: Set<
|
|
79
|
-
toFlatIds(seenEntities?: Set<
|
|
80
|
-
toJSON(): IArgumentDeclarationTransfer;
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
81
|
+
toFlat(seenEntities?: Set<EntityId>): EntityState[];
|
|
82
|
+
toFlatIds(seenEntities?: Set<EntityId>): EntityId[];
|
|
83
|
+
toJSON(seenEntities?: Set<EntityId>): IArgumentDeclarationTransfer | IArgumentDeclarationReference;
|
|
84
|
+
toJSONClone(options?: IEntityJSONCloneOptions): IArgumentDeclarationTransfer | IArgumentDeclarationReference;
|
|
85
|
+
toReference(options?: IEntityRecursionOptions): IArgumentDeclarationReference;
|
|
86
|
+
toShallowJSON(options?: IEntityRecursionOptions): IArgumentDeclarationShallowTransfer;
|
|
87
|
+
toFlatJSON(seenEntities?: Set<EntityId>): ElementShallowTransfer[];
|
|
84
88
|
toGenerationTarget(): IArgumentDeclarationGenerationTarget;
|
|
85
|
-
toFlatGenerationTarget(seenEntities?: Set<
|
|
89
|
+
toFlatGenerationTarget(seenEntities?: Set<EntityId>): ElementGenerationTarget[];
|
|
86
90
|
clearErrors(): ArgumentDeclarationState;
|
|
87
91
|
validate(): {
|
|
88
92
|
success: boolean;
|
|
@@ -428,11 +428,11 @@ export declare function getArgumentDeclarationSchema(): z.ZodObject<z.objectUtil
|
|
|
428
428
|
entityId: string;
|
|
429
429
|
};
|
|
430
430
|
version: number;
|
|
431
|
+
x: number;
|
|
432
|
+
y: number;
|
|
431
433
|
dataType: Record<string, any> | {
|
|
432
434
|
type: EntityType.DataType;
|
|
433
435
|
} | null;
|
|
434
|
-
x: number;
|
|
435
|
-
y: number;
|
|
436
436
|
writesValues: (Record<string, any> | {
|
|
437
437
|
type: EntityType.InputMap;
|
|
438
438
|
} | {
|
|
@@ -472,11 +472,11 @@ export declare function getArgumentDeclarationSchema(): z.ZodObject<z.objectUtil
|
|
|
472
472
|
entityId: string;
|
|
473
473
|
};
|
|
474
474
|
version: number;
|
|
475
|
+
x: number;
|
|
476
|
+
y: number;
|
|
475
477
|
dataType: Record<string, any> | {
|
|
476
478
|
type: EntityType.DataType;
|
|
477
479
|
} | null;
|
|
478
|
-
x: number;
|
|
479
|
-
y: number;
|
|
480
480
|
writesValues: (Record<string, any> | {
|
|
481
481
|
type: EntityType.InputMap;
|
|
482
482
|
} | {
|
|
@@ -1,10 +1,19 @@
|
|
|
1
|
-
import { EntityId, EntityType, EntityVersion, IGenericBase, Element, ElementTransfer, IGenericReference, ElementShallowTransfer, ElementGenerationTarget,
|
|
1
|
+
import { EntityId, EntityType, EntityVersion, IGenericBase, Element, ElementTransfer, IGenericReference, ElementShallowTransfer, ElementGenerationTarget, Reference } from '../../definitions';
|
|
2
2
|
import { ZodError } from 'zod';
|
|
3
3
|
import { CallableEntityState, CallerEntityState, CanvasEntityState, EntityState, IChangeSet, InputMapState, ValueReadingEntityState, ValueWritingEntityState } from '.';
|
|
4
4
|
import { ProjectState } from './project/project';
|
|
5
5
|
import { EntityError } from './error';
|
|
6
6
|
import { LiteralValueState } from './literal-value';
|
|
7
7
|
|
|
8
|
+
export interface IEntityRecursionOptions {
|
|
9
|
+
seenEntityMaps?: Map<EntityId, EntityId>;
|
|
10
|
+
seenEntities?: Set<EntityId>;
|
|
11
|
+
}
|
|
12
|
+
export declare const ENTITY_RECUSION_OPTIONS_DEFAULTS: IEntityRecursionOptions;
|
|
13
|
+
export interface IEntityJSONCloneOptions extends IEntityRecursionOptions {
|
|
14
|
+
newId?: EntityId | null;
|
|
15
|
+
uuidStrategy?: 'uuid' | 'semantic';
|
|
16
|
+
}
|
|
8
17
|
export declare abstract class SharedStateFunctionality {
|
|
9
18
|
initialData: Element | ElementTransfer;
|
|
10
19
|
abstract errors: EntityError[];
|
|
@@ -12,11 +21,11 @@ export declare abstract class SharedStateFunctionality {
|
|
|
12
21
|
abstract subscribe(): SharedStateFunctionality;
|
|
13
22
|
abstract unsubscribe(): SharedStateFunctionality;
|
|
14
23
|
abstract load(): Promise<SharedStateFunctionality>;
|
|
15
|
-
abstract toJSON(): ElementTransfer;
|
|
16
|
-
abstract toReference(): IGenericReference;
|
|
24
|
+
abstract toJSON(seenEntities?: Set<string>): ElementTransfer | Reference;
|
|
25
|
+
abstract toReference(options?: IEntityRecursionOptions): IGenericReference;
|
|
17
26
|
abstract toFlat(seenEntities?: Set<string>): EntityState[];
|
|
18
27
|
abstract toFlatIds(seenEntities?: Set<string>): EntityId[];
|
|
19
|
-
abstract toShallowJSON(): ElementShallowTransfer;
|
|
28
|
+
abstract toShallowJSON(options?: IEntityRecursionOptions): ElementShallowTransfer;
|
|
20
29
|
abstract toFlatJSON(seenEntities?: Set<string>): ElementShallowTransfer[];
|
|
21
30
|
abstract toGenerationTarget(): ElementGenerationTarget;
|
|
22
31
|
abstract toFlatGenerationTarget(seenEntities?: Set<string>): ElementGenerationTarget[];
|
|
@@ -26,16 +35,31 @@ export declare abstract class SharedStateFunctionality {
|
|
|
26
35
|
data: ElementTransfer | null;
|
|
27
36
|
};
|
|
28
37
|
abstract clearErrors(): SharedStateFunctionality;
|
|
29
|
-
abstract clone(parent?: EntityState | null, newId?: string | null, subscribe?: boolean): SharedStateFunctionality;
|
|
30
38
|
abstract getErrors(): EntityError[];
|
|
31
39
|
abstract getShallowErrors(): EntityError[];
|
|
32
40
|
}
|
|
41
|
+
export interface IEntityPersistanceOptions {
|
|
42
|
+
cascade?: boolean;
|
|
43
|
+
}
|
|
44
|
+
export declare const ENTITY_PERSISTANCE_OPTIONS_DEFAULTS: IEntityPersistanceOptions;
|
|
45
|
+
export interface IReadOnlyEntityPersistanceRepository {
|
|
46
|
+
load(entityId: EntityId): Promise<ElementShallowTransfer | null>;
|
|
47
|
+
}
|
|
48
|
+
export interface IEditableEntityPersistanceRepository extends IReadOnlyEntityPersistanceRepository {
|
|
49
|
+
create(entity: ElementShallowTransfer): Promise<ElementShallowTransfer>;
|
|
50
|
+
update(entity: ElementShallowTransfer): Promise<ElementShallowTransfer>;
|
|
51
|
+
delete(entityId: EntityId): Promise<void>;
|
|
52
|
+
}
|
|
53
|
+
export declare const READ_ONLY_ENTITY_PERSISTANCE_REPOSITORY: IReadOnlyEntityPersistanceRepository;
|
|
54
|
+
export declare const EDITABLE_PERSISTANCE_REPOSITORY_DEFAULTS: IEditableEntityPersistanceRepository;
|
|
33
55
|
export declare abstract class UserManagedEntityStateFunctionality {
|
|
56
|
+
abstract hydrateAncestors(): IChangeSet<UserManagedEntityStateFunctionality>;
|
|
34
57
|
abstract addSelfToProject(): IChangeSet<UserManagedEntityStateFunctionality>;
|
|
58
|
+
abstract afterAllChildrenInitialized(): IChangeSet<UserManagedEntityStateFunctionality>;
|
|
35
59
|
abstract sync(data: Partial<IGenericBase>): SharedStateFunctionality;
|
|
36
|
-
abstract create(): Promise<SharedStateFunctionality>;
|
|
37
|
-
abstract update(
|
|
38
|
-
abstract delete(): Promise<SharedStateFunctionality>;
|
|
60
|
+
abstract create(options: IEntityPersistanceOptions): Promise<SharedStateFunctionality>;
|
|
61
|
+
abstract update(options: IEntityPersistanceOptions): Promise<SharedStateFunctionality>;
|
|
62
|
+
abstract delete(options: IEntityPersistanceOptions): Promise<SharedStateFunctionality>;
|
|
39
63
|
abstract remove(options: {
|
|
40
64
|
ignoreUpstream: boolean;
|
|
41
65
|
seenEntities: Set<string>;
|
|
@@ -49,6 +73,8 @@ export declare abstract class UserManagedEntityStateFunctionality {
|
|
|
49
73
|
affected: EntityState[];
|
|
50
74
|
self: EntityState;
|
|
51
75
|
};
|
|
76
|
+
abstract toJSONClone(options?: IEntityJSONCloneOptions): ElementTransfer | Reference;
|
|
77
|
+
abstract clone(parent?: EntityState | null, newId?: string | null, subscribe?: boolean): SharedStateFunctionality;
|
|
52
78
|
}
|
|
53
79
|
export declare abstract class BaseState extends SharedStateFunctionality implements IGenericBase {
|
|
54
80
|
abstract id: EntityId;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { BreakStatementTypesUnion, ElementGenerationTarget, ElementShallowTransfer, EntityId, EntityType, EntityVersion, IBreakStatement, IBreakStatementGenerationTarget, IBreakStatementReference, IBreakStatementShallowTransfer, IBreakStatementTransfer } from '../../../definitions';
|
|
2
2
|
import { ZodError } from 'zod';
|
|
3
|
-
import { BaseCanvasDraggableState, BaseState, CallableEntityClass, ChildEntityState, UserManagedEntityStateFunctionality } from '../base';
|
|
4
|
-
import { FunctionDeclarationState } from '../function-declaration';
|
|
3
|
+
import { BaseCanvasDraggableState, BaseState, CallableEntityClass, ChildEntityState, IEntityPersistanceOptions, IEditableEntityPersistanceRepository, UserManagedEntityStateFunctionality, IEntityJSONCloneOptions, IEntityRecursionOptions } from '../base';
|
|
5
4
|
import { ReturnDeclarationState } from '../return-declaration';
|
|
6
5
|
import { CallerEntityState, EntityState, EntryPointEntityState, IChangeSet, PassThroughCallableEntityState } from '../types';
|
|
7
6
|
import { ProjectState } from '../project/project';
|
|
@@ -26,6 +25,7 @@ export declare class BreakStatementState implements IBreakStatement, UserManaged
|
|
|
26
25
|
initialized: boolean;
|
|
27
26
|
suggestion: boolean;
|
|
28
27
|
constructor(initialBreakStatementData: IBreakStatement | IBreakStatementTransfer, parentProjectState: ProjectState);
|
|
28
|
+
static repository: IEditableEntityPersistanceRepository;
|
|
29
29
|
static MUTABLE_BASE_PROPERTIES: string[];
|
|
30
30
|
static INMUTABLE_BASE_PROPERTIES: string[];
|
|
31
31
|
static BASE_PROPERTIES: string[];
|
|
@@ -48,6 +48,8 @@ export declare class BreakStatementState implements IBreakStatement, UserManaged
|
|
|
48
48
|
errors: EntityGenerationError[];
|
|
49
49
|
modifiedData: Partial<IBreakStatementGenerationTarget>;
|
|
50
50
|
};
|
|
51
|
+
hydrateAncestors(): IChangeSet<BreakStatementState>;
|
|
52
|
+
afterAllChildrenInitialized(): IChangeSet<BreakStatementState>;
|
|
51
53
|
addSelfToProject(): IChangeSet<BreakStatementState>;
|
|
52
54
|
get calledBy(): CallerEntityState[];
|
|
53
55
|
addSuccessCaller(caller: PassThroughCallableEntityState): BreakStatementState;
|
|
@@ -61,10 +63,10 @@ export declare class BreakStatementState implements IBreakStatement, UserManaged
|
|
|
61
63
|
subscribe(): BreakStatementState;
|
|
62
64
|
unsubscribe(): BreakStatementState;
|
|
63
65
|
sync(data: Partial<IBreakStatement>): BreakStatementState;
|
|
64
|
-
load(): Promise<BreakStatementState>;
|
|
65
|
-
create(): Promise<BreakStatementState>;
|
|
66
|
-
update(_
|
|
67
|
-
delete(): Promise<BreakStatementState>;
|
|
66
|
+
load(_?: IEntityPersistanceOptions): Promise<BreakStatementState>;
|
|
67
|
+
create(_?: IEntityPersistanceOptions): Promise<BreakStatementState>;
|
|
68
|
+
update(_?: IEntityPersistanceOptions): Promise<BreakStatementState>;
|
|
69
|
+
delete(_?: IEntityPersistanceOptions): Promise<BreakStatementState>;
|
|
68
70
|
remove({ ignoreUpstream, seenEntities, }?: {
|
|
69
71
|
ignoreUpstream: boolean;
|
|
70
72
|
seenEntities: Set<string>;
|
|
@@ -78,14 +80,15 @@ export declare class BreakStatementState implements IBreakStatement, UserManaged
|
|
|
78
80
|
affected: EntityState[];
|
|
79
81
|
self: EntityState;
|
|
80
82
|
};
|
|
81
|
-
toFlat(seenEntities?: Set<
|
|
82
|
-
toFlatIds(seenEntities?: Set<
|
|
83
|
-
toJSON(): IBreakStatementTransfer;
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
83
|
+
toFlat(seenEntities?: Set<EntityId>): EntityState[];
|
|
84
|
+
toFlatIds(seenEntities?: Set<EntityId>): EntityId[];
|
|
85
|
+
toJSON(seenEntities?: Set<EntityId>): IBreakStatementTransfer | IBreakStatementReference;
|
|
86
|
+
toJSONClone(options?: IEntityJSONCloneOptions): IBreakStatementTransfer | IBreakStatementReference;
|
|
87
|
+
toReference(options?: IEntityRecursionOptions): IBreakStatementReference;
|
|
88
|
+
toShallowJSON(options?: IEntityRecursionOptions): IBreakStatementShallowTransfer;
|
|
89
|
+
toFlatJSON(seenEntities?: Set<EntityId>): ElementShallowTransfer[];
|
|
87
90
|
toGenerationTarget(): IBreakStatementGenerationTarget;
|
|
88
|
-
toFlatGenerationTarget(seenEntities?: Set<
|
|
91
|
+
toFlatGenerationTarget(seenEntities?: Set<EntityId>): ElementGenerationTarget[];
|
|
89
92
|
clearErrors(): BreakStatementState;
|
|
90
93
|
validate(): {
|
|
91
94
|
success: boolean;
|
|
@@ -94,6 +97,6 @@ export declare class BreakStatementState implements IBreakStatement, UserManaged
|
|
|
94
97
|
};
|
|
95
98
|
getErrors(): EntityError[];
|
|
96
99
|
getShallowErrors(): EntityError[];
|
|
97
|
-
clone(
|
|
100
|
+
clone(parent?: LoopState | null, newId?: string | null, subscribe?: boolean): BreakStatementState;
|
|
98
101
|
}
|
|
99
102
|
export type BreakStatementPayloadUnion = BreakStatementState | BreakStatementTypesUnion;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BaseEntityNames, BuiltInBaseEntityTypesUnion, ElementGenerationTarget, ElementShallowTransfer, EntityId, EntityType, EntityVersion, IBuiltInBaseEntity, IBuiltInBaseEntityGenerationTarget, IBuiltInBaseEntityReference, IBuiltInBaseEntityShallowTransfer, IBuiltInBaseEntityTransfer } from '../../../definitions';
|
|
2
2
|
import { ZodError } from 'zod';
|
|
3
|
-
import { BaseState } from '../base';
|
|
3
|
+
import { BaseState, IEntityPersistanceOptions, IEntityRecursionOptions, IReadOnlyEntityPersistanceRepository } from '../base';
|
|
4
4
|
import { PropertyState } from '../property';
|
|
5
5
|
import { ProjectState } from '../project/project';
|
|
6
6
|
import { PrimitiveEntityState } from '../primitive-entity';
|
|
@@ -27,6 +27,7 @@ export declare class BuiltInBaseEntityState implements BaseState, IBuiltInBaseEn
|
|
|
27
27
|
errors: EntityError[];
|
|
28
28
|
project: ProjectState;
|
|
29
29
|
constructor(initialEntityData: IBuiltInBaseEntity | IBuiltInBaseEntityTransfer, parentProjectState: ProjectState);
|
|
30
|
+
static repository: IReadOnlyEntityPersistanceRepository;
|
|
30
31
|
get allBasePropertiesFromExtendedAndImplementedEntities(): PropertyState[];
|
|
31
32
|
get extendedPropertiesFromOriginalParents(): PropertyState[];
|
|
32
33
|
get implementedPropertiesFromOriginalParents(): PropertyState[];
|
|
@@ -34,7 +35,7 @@ export declare class BuiltInBaseEntityState implements BaseState, IBuiltInBaseEn
|
|
|
34
35
|
get ownDeclaredProperties(): PropertyState[];
|
|
35
36
|
subscribe(): BuiltInBaseEntityState;
|
|
36
37
|
unsubscribe(): BuiltInBaseEntityState;
|
|
37
|
-
load(): Promise<BuiltInBaseEntityState>;
|
|
38
|
+
load(_?: IEntityPersistanceOptions): Promise<BuiltInBaseEntityState>;
|
|
38
39
|
remove(_?: {
|
|
39
40
|
ignoreUpstream: boolean;
|
|
40
41
|
seenEntities: Set<string>;
|
|
@@ -48,14 +49,14 @@ export declare class BuiltInBaseEntityState implements BaseState, IBuiltInBaseEn
|
|
|
48
49
|
affected: EntityState[];
|
|
49
50
|
self: BuiltInBaseEntityState;
|
|
50
51
|
};
|
|
51
|
-
toFlat(seenEntities?: Set<
|
|
52
|
-
toFlatIds(seenEntities?: Set<
|
|
53
|
-
toJSON(): IBuiltInBaseEntityTransfer;
|
|
54
|
-
toReference(): IBuiltInBaseEntityReference;
|
|
55
|
-
toShallowJSON(): IBuiltInBaseEntityShallowTransfer;
|
|
56
|
-
toFlatJSON(seenEntities?: Set<
|
|
52
|
+
toFlat(seenEntities?: Set<EntityId>): EntityState[];
|
|
53
|
+
toFlatIds(seenEntities?: Set<EntityId>): EntityId[];
|
|
54
|
+
toJSON(seenEntities?: Set<EntityId>): IBuiltInBaseEntityTransfer | IBuiltInBaseEntityReference;
|
|
55
|
+
toReference(_?: IEntityRecursionOptions): IBuiltInBaseEntityReference;
|
|
56
|
+
toShallowJSON(_?: IEntityRecursionOptions): IBuiltInBaseEntityShallowTransfer;
|
|
57
|
+
toFlatJSON(seenEntities?: Set<EntityId>): ElementShallowTransfer[];
|
|
57
58
|
toGenerationTarget(): IBuiltInBaseEntityGenerationTarget;
|
|
58
|
-
toFlatGenerationTarget(seenEntities?: Set<
|
|
59
|
+
toFlatGenerationTarget(seenEntities?: Set<EntityId>): ElementGenerationTarget[];
|
|
59
60
|
clearErrors(): BuiltInBaseEntityState;
|
|
60
61
|
validate(): {
|
|
61
62
|
success: boolean;
|
|
@@ -64,7 +65,6 @@ export declare class BuiltInBaseEntityState implements BaseState, IBuiltInBaseEn
|
|
|
64
65
|
};
|
|
65
66
|
getErrors(): EntityError[];
|
|
66
67
|
getShallowErrors(): EntityError[];
|
|
67
|
-
clone(): BuiltInBaseEntityState;
|
|
68
68
|
implement(newEntityName: string, newId?: string): {
|
|
69
69
|
errors: [];
|
|
70
70
|
implemented: CustomEntityState;
|
|
@@ -39,16 +39,16 @@ export declare function getBuiltInBaseEntityBaseSchema(): z.ZodObject<{
|
|
|
39
39
|
name: BaseEntityNames.HTTP_ENDPOINT | BaseEntityNames.RELATIONAL_DATABASE | BaseEntityNames.PERSISTED_ENTITY | BaseEntityNames.CRON_JOB | BaseEntityNames.EXECUTION;
|
|
40
40
|
description: string | null;
|
|
41
41
|
version: number;
|
|
42
|
-
abstract: boolean;
|
|
43
42
|
static: boolean;
|
|
43
|
+
abstract: boolean;
|
|
44
44
|
}, {
|
|
45
45
|
id: string;
|
|
46
46
|
type: EntityType.BuiltInBaseEntity;
|
|
47
47
|
name: BaseEntityNames.HTTP_ENDPOINT | BaseEntityNames.RELATIONAL_DATABASE | BaseEntityNames.PERSISTED_ENTITY | BaseEntityNames.CRON_JOB | BaseEntityNames.EXECUTION;
|
|
48
48
|
description: string | null;
|
|
49
49
|
version: number;
|
|
50
|
-
abstract: boolean;
|
|
51
50
|
static: boolean;
|
|
51
|
+
abstract: boolean;
|
|
52
52
|
}>;
|
|
53
53
|
export declare function getBuiltInBaseEntityMetaSchema(): z.ZodObject<{
|
|
54
54
|
id: z.ZodString;
|
|
@@ -64,16 +64,16 @@ export declare function getBuiltInBaseEntityMetaSchema(): z.ZodObject<{
|
|
|
64
64
|
name: BaseEntityNames.HTTP_ENDPOINT | BaseEntityNames.RELATIONAL_DATABASE | BaseEntityNames.PERSISTED_ENTITY | BaseEntityNames.CRON_JOB | BaseEntityNames.EXECUTION;
|
|
65
65
|
description: string | null;
|
|
66
66
|
version: number;
|
|
67
|
-
abstract: boolean;
|
|
68
67
|
static: boolean;
|
|
68
|
+
abstract: boolean;
|
|
69
69
|
}, {
|
|
70
70
|
id: string;
|
|
71
71
|
type: EntityType.BuiltInBaseEntity;
|
|
72
72
|
name: BaseEntityNames.HTTP_ENDPOINT | BaseEntityNames.RELATIONAL_DATABASE | BaseEntityNames.PERSISTED_ENTITY | BaseEntityNames.CRON_JOB | BaseEntityNames.EXECUTION;
|
|
73
73
|
description: string | null;
|
|
74
74
|
version: number;
|
|
75
|
-
abstract: boolean;
|
|
76
75
|
static: boolean;
|
|
76
|
+
abstract: boolean;
|
|
77
77
|
}>;
|
|
78
78
|
export declare function getBuiltInBaseEntityGenerationTargetSchema(): z.ZodObject<z.objectUtil.extendShape<{
|
|
79
79
|
id: z.ZodString;
|
|
@@ -89,16 +89,16 @@ export declare function getBuiltInBaseEntityGenerationTargetSchema(): z.ZodObjec
|
|
|
89
89
|
name: BaseEntityNames.HTTP_ENDPOINT | BaseEntityNames.RELATIONAL_DATABASE | BaseEntityNames.PERSISTED_ENTITY | BaseEntityNames.CRON_JOB | BaseEntityNames.EXECUTION;
|
|
90
90
|
description: string | null;
|
|
91
91
|
version: number;
|
|
92
|
-
abstract: boolean;
|
|
93
92
|
static: boolean;
|
|
93
|
+
abstract: boolean;
|
|
94
94
|
}, {
|
|
95
95
|
id: string;
|
|
96
96
|
type: EntityType.BuiltInBaseEntity;
|
|
97
97
|
name: BaseEntityNames.HTTP_ENDPOINT | BaseEntityNames.RELATIONAL_DATABASE | BaseEntityNames.PERSISTED_ENTITY | BaseEntityNames.CRON_JOB | BaseEntityNames.EXECUTION;
|
|
98
98
|
description: string | null;
|
|
99
99
|
version: number;
|
|
100
|
-
abstract: boolean;
|
|
101
100
|
static: boolean;
|
|
101
|
+
abstract: boolean;
|
|
102
102
|
}>;
|
|
103
103
|
export declare function getBuiltInBaseEntityNestedEntitiesSchema(): z.ZodObject<{
|
|
104
104
|
properties: z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
@@ -220,8 +220,6 @@ export declare function getBuiltInBaseEntitySchema(): z.ZodObject<z.objectUtil.e
|
|
|
220
220
|
type: EntityType.BuiltInBaseEntity;
|
|
221
221
|
})[];
|
|
222
222
|
version: number;
|
|
223
|
-
abstract: boolean;
|
|
224
|
-
static: boolean;
|
|
225
223
|
methods: (Record<string, any> | {
|
|
226
224
|
type: EntityType.FunctionDeclaration;
|
|
227
225
|
})[];
|
|
@@ -231,6 +229,8 @@ export declare function getBuiltInBaseEntitySchema(): z.ZodObject<z.objectUtil.e
|
|
|
231
229
|
abstractMethods: (Record<string, any> | {
|
|
232
230
|
type: EntityType.ActionDescriptor;
|
|
233
231
|
})[];
|
|
232
|
+
static: boolean;
|
|
233
|
+
abstract: boolean;
|
|
234
234
|
}, {
|
|
235
235
|
id: string;
|
|
236
236
|
type: EntityType.BuiltInBaseEntity;
|
|
@@ -242,8 +242,6 @@ export declare function getBuiltInBaseEntitySchema(): z.ZodObject<z.objectUtil.e
|
|
|
242
242
|
type: EntityType.BuiltInBaseEntity;
|
|
243
243
|
})[];
|
|
244
244
|
version: number;
|
|
245
|
-
abstract: boolean;
|
|
246
|
-
static: boolean;
|
|
247
245
|
methods: (Record<string, any> | {
|
|
248
246
|
type: EntityType.FunctionDeclaration;
|
|
249
247
|
})[];
|
|
@@ -253,4 +251,6 @@ export declare function getBuiltInBaseEntitySchema(): z.ZodObject<z.objectUtil.e
|
|
|
253
251
|
abstractMethods: (Record<string, any> | {
|
|
254
252
|
type: EntityType.ActionDescriptor;
|
|
255
253
|
})[];
|
|
254
|
+
static: boolean;
|
|
255
|
+
abstract: boolean;
|
|
256
256
|
}>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EntityId, EntityType, EntityVersion, ICondition, IConditionTransfer, IConditionReference, IConditionShallowTransfer, ElementShallowTransfer, IConditionGenerationTarget, ElementGenerationTarget, ConditionTypesUnion } from '../../../definitions';
|
|
2
2
|
import { ZodError } from 'zod';
|
|
3
|
-
import { BaseCanvasDraggableState, BaseState, CallableEntityClass, ChildEntityState, PassThroughCallableEntityClass, UserManagedEntityStateFunctionality } from '../base';
|
|
3
|
+
import { BaseCanvasDraggableState, BaseState, CallableEntityClass, ChildEntityState, IEditableEntityPersistanceRepository, IEntityJSONCloneOptions, IEntityPersistanceOptions, IEntityRecursionOptions, PassThroughCallableEntityClass, UserManagedEntityStateFunctionality } from '../base';
|
|
4
4
|
import { CallableEntityState, CallerEntityState, EntityState, EntityWithLogicScopeState, EntryPointEntityState, IChangeSet, PassThroughCallableEntityState } from '../types';
|
|
5
5
|
import { ActionInputMapState } from '../input-map';
|
|
6
6
|
import { ProjectState } from '../project/project';
|
|
@@ -27,6 +27,7 @@ export declare class ConditionState implements ICondition, UserManagedEntityStat
|
|
|
27
27
|
parent: EntityWithLogicScopeState | ProjectState;
|
|
28
28
|
initialized: boolean;
|
|
29
29
|
constructor(initialConditionData: ICondition | IConditionTransfer, parentProjectState: ProjectState);
|
|
30
|
+
static repository: IEditableEntityPersistanceRepository;
|
|
30
31
|
static MUTABLE_BASE_PROPERTIES: string[];
|
|
31
32
|
static INMUTABLE_BASE_PROPERTIES: string[];
|
|
32
33
|
static BASE_PROPERTIES: string[];
|
|
@@ -49,6 +50,8 @@ export declare class ConditionState implements ICondition, UserManagedEntityStat
|
|
|
49
50
|
errors: EntityGenerationError[];
|
|
50
51
|
modifiedData: Partial<IConditionGenerationTarget>;
|
|
51
52
|
};
|
|
53
|
+
hydrateAncestors(): IChangeSet<ConditionState>;
|
|
54
|
+
afterAllChildrenInitialized(): IChangeSet<ConditionState>;
|
|
52
55
|
addSelfToProject(): IChangeSet<ConditionState>;
|
|
53
56
|
get calledBy(): CallerEntityState[];
|
|
54
57
|
removeInput(input: ActionInputMapState): ConditionState;
|
|
@@ -63,14 +66,15 @@ export declare class ConditionState implements ICondition, UserManagedEntityStat
|
|
|
63
66
|
removeCall(call: CallableEntityState): ConditionState;
|
|
64
67
|
removeCaller(caller: CallerEntityState): ConditionState;
|
|
65
68
|
setParent(parent: EntityWithLogicScopeState | ProjectState): ConditionState;
|
|
69
|
+
setDeclaration(declaration: ActionDescriptorState): ConditionState;
|
|
66
70
|
initChildren(): ConditionState;
|
|
67
71
|
subscribe(): ConditionState;
|
|
68
72
|
unsubscribe(): ConditionState;
|
|
69
73
|
sync(data: Partial<ICondition>): ConditionState;
|
|
70
|
-
load(): Promise<ConditionState>;
|
|
71
|
-
create(): Promise<ConditionState>;
|
|
72
|
-
update(_
|
|
73
|
-
delete(): Promise<ConditionState>;
|
|
74
|
+
load(_?: IEntityPersistanceOptions): Promise<ConditionState>;
|
|
75
|
+
create(_?: IEntityPersistanceOptions): Promise<ConditionState>;
|
|
76
|
+
update(_?: IEntityPersistanceOptions): Promise<ConditionState>;
|
|
77
|
+
delete(_?: IEntityPersistanceOptions): Promise<ConditionState>;
|
|
74
78
|
remove({ ignoreUpstream, seenEntities, }?: {
|
|
75
79
|
ignoreUpstream: boolean;
|
|
76
80
|
seenEntities: Set<string>;
|
|
@@ -84,14 +88,15 @@ export declare class ConditionState implements ICondition, UserManagedEntityStat
|
|
|
84
88
|
affected: EntityState[];
|
|
85
89
|
self: EntityState;
|
|
86
90
|
};
|
|
87
|
-
toFlat(seenEntities?: Set<
|
|
88
|
-
toFlatIds(seenEntities?: Set<
|
|
89
|
-
toJSON(): IConditionTransfer;
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
91
|
+
toFlat(seenEntities?: Set<EntityId>): EntityState[];
|
|
92
|
+
toFlatIds(seenEntities?: Set<EntityId>): EntityId[];
|
|
93
|
+
toJSON(seenEntities?: Set<EntityId>): IConditionTransfer | IConditionReference;
|
|
94
|
+
toJSONClone(options?: IEntityJSONCloneOptions): IConditionTransfer | IConditionReference;
|
|
95
|
+
toReference(options?: IEntityRecursionOptions): IConditionReference;
|
|
96
|
+
toShallowJSON(options?: IEntityRecursionOptions): IConditionShallowTransfer;
|
|
97
|
+
toFlatJSON(seenEntities?: Set<EntityId>): ElementShallowTransfer[];
|
|
93
98
|
toGenerationTarget(): IConditionGenerationTarget;
|
|
94
|
-
toFlatGenerationTarget(seenEntities?: Set<
|
|
99
|
+
toFlatGenerationTarget(seenEntities?: Set<EntityId>): ElementGenerationTarget[];
|
|
95
100
|
clearErrors(): ConditionState;
|
|
96
101
|
validate(): {
|
|
97
102
|
success: boolean;
|
|
@@ -100,7 +105,7 @@ export declare class ConditionState implements ICondition, UserManagedEntityStat
|
|
|
100
105
|
};
|
|
101
106
|
getErrors(): EntityError[];
|
|
102
107
|
getShallowErrors(): EntityError[];
|
|
103
|
-
clone(
|
|
108
|
+
clone(parent?: EntryPointEntityState | ProjectState | null, newId?: string | null, subscribe?: boolean): ConditionState;
|
|
104
109
|
removeUnrecognizedInputs(): IChangeSet<ConditionState>;
|
|
105
110
|
syncMissingFixedInputs(): IChangeSet<ConditionState>;
|
|
106
111
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ContinueStatementTypesUnion, ElementGenerationTarget, ElementShallowTransfer, EntityId, EntityType, EntityVersion, IContinueStatement, IContinueStatementGenerationTarget, IContinueStatementReference, IContinueStatementShallowTransfer, IContinueStatementTransfer } from '../../../definitions';
|
|
2
2
|
import { ZodError } from 'zod';
|
|
3
|
-
import { BaseCanvasDraggableState, BaseState, CallableEntityClass, ChildEntityState, UserManagedEntityStateFunctionality } from '../base';
|
|
4
|
-
import { FunctionDeclarationState } from '../function-declaration';
|
|
3
|
+
import { BaseCanvasDraggableState, BaseState, CallableEntityClass, ChildEntityState, IEditableEntityPersistanceRepository, IEntityJSONCloneOptions, IEntityPersistanceOptions, IEntityRecursionOptions, UserManagedEntityStateFunctionality } from '../base';
|
|
5
4
|
import { ReturnDeclarationState } from '../return-declaration';
|
|
6
5
|
import { CallerEntityState, EntityState, EntryPointEntityState, IChangeSet, PassThroughCallableEntityState } from '../types';
|
|
7
6
|
import { ProjectState } from '../project/project';
|
|
@@ -26,6 +25,7 @@ export declare class ContinueStatementState implements IContinueStatement, UserM
|
|
|
26
25
|
initialized: boolean;
|
|
27
26
|
suggestion: boolean;
|
|
28
27
|
constructor(initialContinueStatementData: IContinueStatement | IContinueStatementTransfer, parentProjectState: ProjectState);
|
|
28
|
+
static repository: IEditableEntityPersistanceRepository;
|
|
29
29
|
static MUTABLE_BASE_PROPERTIES: string[];
|
|
30
30
|
static INMUTABLE_BASE_PROPERTIES: string[];
|
|
31
31
|
static BASE_PROPERTIES: string[];
|
|
@@ -48,6 +48,8 @@ export declare class ContinueStatementState implements IContinueStatement, UserM
|
|
|
48
48
|
errors: EntityGenerationError[];
|
|
49
49
|
modifiedData: Partial<IContinueStatementGenerationTarget>;
|
|
50
50
|
};
|
|
51
|
+
hydrateAncestors(): IChangeSet<ContinueStatementState>;
|
|
52
|
+
afterAllChildrenInitialized(): IChangeSet<ContinueStatementState>;
|
|
51
53
|
addSelfToProject(): IChangeSet<ContinueStatementState>;
|
|
52
54
|
get calledBy(): CallerEntityState[];
|
|
53
55
|
addSuccessCaller(caller: PassThroughCallableEntityState): ContinueStatementState;
|
|
@@ -61,10 +63,10 @@ export declare class ContinueStatementState implements IContinueStatement, UserM
|
|
|
61
63
|
subscribe(): ContinueStatementState;
|
|
62
64
|
unsubscribe(): ContinueStatementState;
|
|
63
65
|
sync(data: Partial<IContinueStatement>): ContinueStatementState;
|
|
64
|
-
load(): Promise<ContinueStatementState>;
|
|
65
|
-
create(): Promise<ContinueStatementState>;
|
|
66
|
-
update(_
|
|
67
|
-
delete(): Promise<ContinueStatementState>;
|
|
66
|
+
load(_?: IEntityPersistanceOptions): Promise<ContinueStatementState>;
|
|
67
|
+
create(_?: IEntityPersistanceOptions): Promise<ContinueStatementState>;
|
|
68
|
+
update(_?: IEntityPersistanceOptions): Promise<ContinueStatementState>;
|
|
69
|
+
delete(_?: IEntityPersistanceOptions): Promise<ContinueStatementState>;
|
|
68
70
|
remove({ ignoreUpstream, seenEntities, }?: {
|
|
69
71
|
ignoreUpstream: boolean;
|
|
70
72
|
seenEntities: Set<string>;
|
|
@@ -78,14 +80,15 @@ export declare class ContinueStatementState implements IContinueStatement, UserM
|
|
|
78
80
|
affected: EntityState[];
|
|
79
81
|
self: EntityState;
|
|
80
82
|
};
|
|
81
|
-
toFlat(seenEntities?: Set<
|
|
82
|
-
toFlatIds(seenEntities?: Set<
|
|
83
|
-
toJSON(): IContinueStatementTransfer;
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
83
|
+
toFlat(seenEntities?: Set<EntityId>): EntityState[];
|
|
84
|
+
toFlatIds(seenEntities?: Set<EntityId>): EntityId[];
|
|
85
|
+
toJSON(seenEntities?: Set<EntityId>): IContinueStatementTransfer | IContinueStatementReference;
|
|
86
|
+
toJSONClone(options?: IEntityJSONCloneOptions): IContinueStatementTransfer | IContinueStatementReference;
|
|
87
|
+
toReference(options?: IEntityRecursionOptions): IContinueStatementReference;
|
|
88
|
+
toShallowJSON(options?: IEntityRecursionOptions): IContinueStatementShallowTransfer;
|
|
89
|
+
toFlatJSON(seenEntities?: Set<EntityId>): ElementShallowTransfer[];
|
|
87
90
|
toGenerationTarget(): IContinueStatementGenerationTarget;
|
|
88
|
-
toFlatGenerationTarget(seenEntities?: Set<
|
|
91
|
+
toFlatGenerationTarget(seenEntities?: Set<EntityId>): ElementGenerationTarget[];
|
|
89
92
|
clearErrors(): ContinueStatementState;
|
|
90
93
|
validate(): {
|
|
91
94
|
success: boolean;
|
|
@@ -94,6 +97,6 @@ export declare class ContinueStatementState implements IContinueStatement, UserM
|
|
|
94
97
|
};
|
|
95
98
|
getErrors(): EntityError[];
|
|
96
99
|
getShallowErrors(): EntityError[];
|
|
97
|
-
clone(
|
|
100
|
+
clone(parent?: LoopState | null, newId?: string | null, subscribe?: boolean): ContinueStatementState;
|
|
98
101
|
}
|
|
99
102
|
export type ContinueStatementPayloadUnion = ContinueStatementState | ContinueStatementTypesUnion;
|