@elyx-code/project-logic-tree 0.0.6121 → 0.0.6123
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/index.d.ts +1 -0
- package/dist/definitions/built-in-base-entities/operations/index.d.ts +1 -1
- package/dist/definitions/logic/definition-entity-to-zod-schema.d.ts +4 -0
- package/dist/definitions/logic/index.d.ts +1 -1
- package/dist/definitions/mock/default-mock/entities/alt-relational-database/entity.d.ts +2 -2
- package/dist/definitions/mock/default-mock/entities/alt-relational-database/properties.d.ts +2 -2
- package/dist/definitions/mock/default-mock/entities/animal.d.ts +4 -4
- package/dist/definitions/mock/default-mock/entities/back-account/account-owner-event.d.ts +2 -2
- package/dist/definitions/mock/default-mock/entities/back-account/change-owner-of-account.d.ts +2 -2
- package/dist/definitions/mock/default-mock/entities/back-account/entity.d.ts +2 -2
- package/dist/definitions/mock/default-mock/entities/back-account/properties.d.ts +3 -3
- package/dist/definitions/mock/default-mock/entities/base-table/entity.d.ts +2 -2
- package/dist/definitions/mock/default-mock/entities/base-table/properties.d.ts +5 -5
- package/dist/definitions/mock/default-mock/entities/bitcoin-api-response/bpi/currency/entity.d.ts +2 -2
- package/dist/definitions/mock/default-mock/entities/bitcoin-api-response/bpi/currency/properties.d.ts +6 -6
- package/dist/definitions/mock/default-mock/entities/bitcoin-api-response/bpi/entity.d.ts +2 -2
- package/dist/definitions/mock/default-mock/entities/bitcoin-api-response/bpi/properties.d.ts +4 -4
- package/dist/definitions/mock/default-mock/entities/bitcoin-api-response/entity.d.ts +2 -2
- package/dist/definitions/mock/default-mock/entities/bitcoin-api-response/properties.d.ts +5 -5
- package/dist/definitions/mock/default-mock/entities/company/change-owner-of-company.d.ts +2 -2
- package/dist/definitions/mock/default-mock/entities/company/company-changed-event/index.d.ts +2 -2
- package/dist/definitions/mock/default-mock/entities/company/entity.d.ts +2 -2
- package/dist/definitions/mock/default-mock/entities/company/properties.d.ts +6 -6
- package/dist/definitions/mock/default-mock/entities/cron-job/entity.d.ts +4 -4
- package/dist/definitions/mock/default-mock/entities/default-relational-database/entity.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/employee.d.ts +6 -6
- package/dist/definitions/mock/default-mock/entities/get-all-bank-accounts-endpoint/entity.d.ts +2 -2
- package/dist/definitions/mock/default-mock/entities/get-company-by-id-endpoint/entity.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/entities/person.d.ts +4 -4
- package/dist/definitions/mock/default-mock/entities/plant.d.ts +4 -4
- package/dist/definitions/mock/default-mock/entities/product.d.ts +5 -5
- package/dist/definitions/mock/default-mock/entities/user.d.ts +4 -4
- package/dist/definitions/types/action-descriptor.d.ts +4 -4
- package/dist/definitions/types/base-entity.d.ts +7 -7
- package/dist/definitions/types/base.d.ts +11 -5
- package/dist/definitions/types/data-type.d.ts +5 -7
- package/dist/definitions/types/definition-entity.d.ts +31 -0
- package/dist/definitions/types/function.d.ts +9 -4
- package/dist/definitions/types/generic-reference.d.ts +2 -2
- package/dist/definitions/types/index.d.ts +19 -19
- package/dist/definitions/types/primitives.d.ts +4 -4
- package/dist/definitions/types/project.d.ts +4 -4
- package/dist/definitions/types/property.d.ts +7 -4
- package/dist/definitions/types/return.d.ts +4 -0
- package/dist/index.js +14011 -14157
- package/dist/index.umd.cjs +220 -220
- package/dist/tree/built-in/operations/{custom-entity → definition-entity}/validate-data.d.ts +2 -2
- package/dist/tree/state/action-descriptor/action-descriptor.d.ts +4 -4
- package/dist/tree/state/action-descriptor/validation/validation-schema.d.ts +10 -10
- package/dist/tree/state/argument-declaration/argument-declaration.d.ts +1 -0
- package/dist/tree/state/built-in-base-entity/built-in-base-entity.d.ts +2 -2
- package/dist/tree/state/data-type/data-type.d.ts +4 -6
- package/dist/tree/state/data-type/validation/validation-schema.d.ts +186 -186
- package/dist/tree/state/definition-entity/definition-entity.d.ts +146 -0
- package/dist/tree/state/definition-entity/index.d.ts +1 -0
- package/dist/tree/state/definition-entity/validation/logic-validation.d.ts +9 -0
- package/dist/tree/state/definition-entity/validation/references.d.ts +5 -0
- package/dist/tree/state/{custom-entity → definition-entity}/validation/validation-schema.d.ts +54 -54
- package/dist/tree/state/function-declaration/function-declaration.d.ts +4 -4
- package/dist/tree/state/function-declaration/validation/validation-schema.d.ts +10 -10
- package/dist/tree/state/global-event/validation/validation-schema.d.ts +14 -14
- package/dist/tree/state/index.d.ts +1 -1
- package/dist/tree/state/input-map/validation/validation-schema.d.ts +504 -504
- package/dist/tree/state/literal-value/literal-value.d.ts +2 -2
- package/dist/tree/state/literal-value/validation/validation-schema.d.ts +131 -131
- package/dist/tree/state/project/project.d.ts +7 -7
- package/dist/tree/state/project/validation/validation-schema.d.ts +10 -10
- package/dist/tree/state/property/property.d.ts +5 -4
- package/dist/tree/state/property/validation/validation-schema.d.ts +10 -10
- package/dist/tree/state/return-declaration/return-declaration.d.ts +1 -0
- package/dist/tree/state/types/state.d.ts +5 -5
- package/dist/tree/state/types/validation.d.ts +12 -12
- package/dist/tree/state/validate.d.ts +2 -2
- package/dist/tree/state/variable-declaration/variable-declaration.d.ts +2 -0
- package/dist/tree/utils/data-type.d.ts +7 -7
- package/dist/tree/utils/index.d.ts +22 -22
- package/dist/tree/utils/names.d.ts +4 -4
- package/dist/tree/utils/shared-data-structure-entity.d.ts +13 -13
- package/dist/tree/utils/traverser.d.ts +10 -8
- package/package.json +1 -1
- package/dist/definitions/logic/custom-entity-to-zod-schema.d.ts +0 -4
- package/dist/definitions/types/custom-entity.d.ts +0 -31
- package/dist/tree/state/custom-entity/custom-entity.d.ts +0 -146
- package/dist/tree/state/custom-entity/index.d.ts +0 -1
- package/dist/tree/state/custom-entity/validation/logic-validation.d.ts +0 -9
- package/dist/tree/state/custom-entity/validation/references.d.ts +0 -5
- /package/dist/definitions/built-in-base-entities/operations/{custom-entity → definition-entity}/create-new.d.ts +0 -0
- /package/dist/definitions/built-in-base-entities/operations/{custom-entity → definition-entity}/index.d.ts +0 -0
- /package/dist/definitions/built-in-base-entities/operations/{custom-entity → definition-entity}/validate-data.d.ts +0 -0
- /package/dist/tree/built-in/operations/{custom-entity → definition-entity}/create-new.d.ts +0 -0
- /package/dist/tree/built-in/operations/{custom-entity → definition-entity}/index.d.ts +0 -0
- /package/dist/tree/built-in/operations/{custom-entity → definition-entity}/validate-data.test.d.ts +0 -0
- /package/dist/tree/state/{custom-entity/custom-entity.test.d.ts → definition-entity/definition-entity.test.d.ts} +0 -0
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import { DefinitionEntityTypesUnion, ElementGenerationTarget, ElementShallowTransfer, EntityId, EntityType, EntityVersion, IDefinitionEntity, IDefinitionEntityGenerationTarget, IDefinitionEntityReference, IDefinitionEntityShallowTransfer, IDefinitionEntityTransfer } from '../../../definitions';
|
|
2
|
+
import { ZodError } from 'zod';
|
|
3
|
+
import { BaseCanvasDraggableState, BaseState, ChildEntityState, IEditableEntityPersistanceRepository, IEntityJSONCloneOptions, IEntityPersistanceOptions, IEntityRecursionOptions, UserManagedEntityStateFunctionality } from '../base';
|
|
4
|
+
import { PropertyState } from '../property';
|
|
5
|
+
import { FunctionDeclarationState } from '../function-declaration';
|
|
6
|
+
import { ProjectState } from '../project/project';
|
|
7
|
+
import { BuiltInBaseEntityState } from '../built-in-base-entity';
|
|
8
|
+
import { ActionDescriptorState } from '../action-descriptor';
|
|
9
|
+
import { EntityError, EntityGenerationError } from '../error';
|
|
10
|
+
import { EntityState, IChangeSet } from '../types';
|
|
11
|
+
import { DataTypeState } from '../data-type';
|
|
12
|
+
import { VariableInputMapState } from '../input-map';
|
|
13
|
+
|
|
14
|
+
export declare class DefinitionEntityState implements BaseState, UserManagedEntityStateFunctionality, BaseCanvasDraggableState, IDefinitionEntity, ChildEntityState {
|
|
15
|
+
initialData: IDefinitionEntity | IDefinitionEntityTransfer;
|
|
16
|
+
readonly id: EntityId;
|
|
17
|
+
version: EntityVersion;
|
|
18
|
+
name: string;
|
|
19
|
+
description: string | null;
|
|
20
|
+
x: number;
|
|
21
|
+
y: number;
|
|
22
|
+
static: boolean;
|
|
23
|
+
abstract: boolean;
|
|
24
|
+
readonly type: EntityType.DefinitionEntity;
|
|
25
|
+
properties: PropertyState[];
|
|
26
|
+
methods: FunctionDeclarationState[];
|
|
27
|
+
abstractMethods: ActionDescriptorState[];
|
|
28
|
+
extends: (DefinitionEntityState | BuiltInBaseEntityState)[];
|
|
29
|
+
implements: (DefinitionEntityState | BuiltInBaseEntityState)[];
|
|
30
|
+
project: ProjectState;
|
|
31
|
+
errors: EntityError[];
|
|
32
|
+
parent: ProjectState | DataTypeState;
|
|
33
|
+
initialized: boolean;
|
|
34
|
+
suggestedProperties: PropertyState[];
|
|
35
|
+
suggestedMethods: FunctionDeclarationState[];
|
|
36
|
+
constructor(initialEntityData: IDefinitionEntity | IDefinitionEntityTransfer, parentProjectState: ProjectState);
|
|
37
|
+
static repository: IEditableEntityPersistanceRepository;
|
|
38
|
+
static MUTABLE_BASE_PROPERTIES: string[];
|
|
39
|
+
static INMUTABLE_BASE_PROPERTIES: string[];
|
|
40
|
+
static BASE_PROPERTIES: string[];
|
|
41
|
+
static MUTABLE_META_PROPERTIES: string[];
|
|
42
|
+
static INMUTABLE_META_PROPERTIES: string[];
|
|
43
|
+
static META_PROPERTIES: string[];
|
|
44
|
+
static MUTABLE_UPSTREAM_PROPERTIES: string[];
|
|
45
|
+
static INMUTABLE_UPSTREAM_PROPERTIES: string[];
|
|
46
|
+
static UPSTREAM_PROPERTIES: string[];
|
|
47
|
+
static MUTABLE_DOWNSTREAM_PROPERTIES: string[];
|
|
48
|
+
static INMUTABLE_DOWNSTREAM_PROPERTIES: string[];
|
|
49
|
+
static DOWNSTREAM_PROPERTIES: string[];
|
|
50
|
+
static PROPERTIES: string[];
|
|
51
|
+
static fromGenerationTarget(data: IDefinitionEntityGenerationTarget, parentProjectState: ProjectState): DefinitionEntityState;
|
|
52
|
+
static validateGenerationTarget(data: IDefinitionEntityGenerationTarget, project: ProjectState): {
|
|
53
|
+
errors: EntityGenerationError[];
|
|
54
|
+
modifiedData: IDefinitionEntityGenerationTarget;
|
|
55
|
+
};
|
|
56
|
+
get allBasePropertiesFromExtendedAndImplementedEntities(): PropertyState[];
|
|
57
|
+
get extendedPropertiesFromOriginalParents(): PropertyState[];
|
|
58
|
+
get implementedPropertiesFromOriginalParents(): PropertyState[];
|
|
59
|
+
get extendedProperties(): PropertyState[];
|
|
60
|
+
get ownDeclaredProperties(): PropertyState[];
|
|
61
|
+
validateGeneratedUpdate(data: Partial<IDefinitionEntityGenerationTarget>): {
|
|
62
|
+
errors: EntityGenerationError[];
|
|
63
|
+
modifiedData: Partial<IDefinitionEntityGenerationTarget>;
|
|
64
|
+
};
|
|
65
|
+
hydrateAncestors(): IChangeSet<DefinitionEntityState>;
|
|
66
|
+
afterAllChildrenInitialized(): IChangeSet<DefinitionEntityState>;
|
|
67
|
+
addSelfToProject(): IChangeSet<DefinitionEntityState>;
|
|
68
|
+
setParent(parent: ProjectState | DataTypeState): DefinitionEntityState;
|
|
69
|
+
addExtension(entity: DefinitionEntityState | BuiltInBaseEntityState): DefinitionEntityState;
|
|
70
|
+
removeExtension(entity: DefinitionEntityState | BuiltInBaseEntityState): DefinitionEntityState;
|
|
71
|
+
addImplementation(entity: DefinitionEntityState | BuiltInBaseEntityState): DefinitionEntityState;
|
|
72
|
+
removeImplementation(entity: DefinitionEntityState | BuiltInBaseEntityState): DefinitionEntityState;
|
|
73
|
+
removeProperty(property: PropertyState): DefinitionEntityState;
|
|
74
|
+
addMethod(method: FunctionDeclarationState): DefinitionEntityState;
|
|
75
|
+
removeMethod(method: FunctionDeclarationState): DefinitionEntityState;
|
|
76
|
+
addProperty(property: PropertyState): DefinitionEntityState;
|
|
77
|
+
addSuggestedProperty(property: PropertyState): DefinitionEntityState;
|
|
78
|
+
addSuggestedMethod(method: FunctionDeclarationState): DefinitionEntityState;
|
|
79
|
+
removeSuggestedProperty(property: PropertyState): DefinitionEntityState;
|
|
80
|
+
removeSuggestedMethod(method: FunctionDeclarationState): DefinitionEntityState;
|
|
81
|
+
addAbstractMethod(method: ActionDescriptorState): DefinitionEntityState;
|
|
82
|
+
removeAbstractMethod(method: ActionDescriptorState): DefinitionEntityState;
|
|
83
|
+
initChildren(): DefinitionEntityState;
|
|
84
|
+
syncImplementationProperties(): DefinitionEntityState;
|
|
85
|
+
addExtendedProperties(): DefinitionEntityState;
|
|
86
|
+
addSuggestions(): DefinitionEntityState;
|
|
87
|
+
subscribe(): DefinitionEntityState;
|
|
88
|
+
unsubscribe(): DefinitionEntityState;
|
|
89
|
+
sync(data: Partial<IDefinitionEntity | IDefinitionEntityTransfer>): DefinitionEntityState;
|
|
90
|
+
load(_?: IEntityPersistanceOptions): Promise<DefinitionEntityState>;
|
|
91
|
+
create(_?: IEntityPersistanceOptions): Promise<DefinitionEntityState>;
|
|
92
|
+
update(_?: IEntityPersistanceOptions): Promise<DefinitionEntityState>;
|
|
93
|
+
delete(_?: IEntityPersistanceOptions): Promise<DefinitionEntityState>;
|
|
94
|
+
remove({ ignoreUpstream: _, seenEntities, }?: {
|
|
95
|
+
ignoreUpstream: boolean;
|
|
96
|
+
seenEntities: Set<string>;
|
|
97
|
+
}): {
|
|
98
|
+
affected: EntityState[];
|
|
99
|
+
removed: EntityState[];
|
|
100
|
+
};
|
|
101
|
+
restore({ seenEntities }?: {
|
|
102
|
+
seenEntities: Set<string>;
|
|
103
|
+
}): {
|
|
104
|
+
affected: EntityState[];
|
|
105
|
+
self: DefinitionEntityState;
|
|
106
|
+
};
|
|
107
|
+
toFlat(seenEntities?: Set<EntityId>): EntityState[];
|
|
108
|
+
toFlatIds(seenEntities?: Set<EntityId>): EntityId[];
|
|
109
|
+
toJSON(seenEntities?: Set<EntityId>): IDefinitionEntityTransfer | IDefinitionEntityReference;
|
|
110
|
+
toJSONClone(options?: IEntityJSONCloneOptions): IDefinitionEntityTransfer | IDefinitionEntityReference;
|
|
111
|
+
toReference(options?: IEntityRecursionOptions): IDefinitionEntityReference;
|
|
112
|
+
toShallowJSON(options?: IEntityRecursionOptions): IDefinitionEntityShallowTransfer;
|
|
113
|
+
toFlatJSON(seenEntities?: Set<EntityId>): ElementShallowTransfer[];
|
|
114
|
+
toGenerationTarget(): IDefinitionEntityGenerationTarget;
|
|
115
|
+
toFlatGenerationTarget(seenEntities?: Set<EntityId>): ElementGenerationTarget[];
|
|
116
|
+
clearErrors(): DefinitionEntityState;
|
|
117
|
+
validate(): {
|
|
118
|
+
success: boolean;
|
|
119
|
+
error: ZodError | null;
|
|
120
|
+
data: IDefinitionEntityTransfer | null;
|
|
121
|
+
};
|
|
122
|
+
getErrors(): EntityError[];
|
|
123
|
+
getShallowErrors(): EntityError[];
|
|
124
|
+
clone(parent?: ProjectState | DataTypeState | null, newId?: string | null, subscribe?: boolean): DefinitionEntityState;
|
|
125
|
+
getFunctionDeclaration(id: EntityId): FunctionDeclarationState | undefined;
|
|
126
|
+
implement(newEntityName: string, newId?: string): {
|
|
127
|
+
errors: [];
|
|
128
|
+
implemented: DefinitionEntityState;
|
|
129
|
+
entitiesChanges: {
|
|
130
|
+
new: EntityState[];
|
|
131
|
+
updated: EntityState[];
|
|
132
|
+
deleted: EntityState[];
|
|
133
|
+
};
|
|
134
|
+
} | {
|
|
135
|
+
errors: [EntityGenerationError, ...EntityGenerationError[]];
|
|
136
|
+
implemented: null;
|
|
137
|
+
entitiesChanges: {
|
|
138
|
+
new: [];
|
|
139
|
+
updated: [];
|
|
140
|
+
deleted: [];
|
|
141
|
+
};
|
|
142
|
+
};
|
|
143
|
+
getAllInteractiveMethods(): FunctionDeclarationState[];
|
|
144
|
+
inferFromInputs(inputs: VariableInputMapState[]): DefinitionEntityState;
|
|
145
|
+
}
|
|
146
|
+
export type DefinitionEntityPayloadUnion = DefinitionEntityState | DefinitionEntityTypesUnion;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './definition-entity';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ActionDescriptorState } from '../../action-descriptor';
|
|
2
|
+
import { EntityError } from '../../error';
|
|
3
|
+
import { DefinitionEntityState } from '../definition-entity';
|
|
4
|
+
import { BuiltInBaseEntityState } from '../../built-in-base-entity';
|
|
5
|
+
import { PropertyState } from '../../property';
|
|
6
|
+
|
|
7
|
+
export declare function validate(self: DefinitionEntityState): EntityError[];
|
|
8
|
+
export declare function getBasePropertiesNotImplemented(self: DefinitionEntityState, implementedEntity: DefinitionEntityState | BuiltInBaseEntityState): PropertyState[];
|
|
9
|
+
export declare function getBaseMethodsNotImplemented(self: DefinitionEntityState, implementedEntity: DefinitionEntityState | BuiltInBaseEntityState): ActionDescriptorState[];
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { IDefinitionEntityGenerationTarget } from '../../../../definitions';
|
|
2
|
+
import { EntityGenerationError } from '../../error';
|
|
3
|
+
import { ProjectState } from '../../project';
|
|
4
|
+
|
|
5
|
+
export declare function validateReferenceTypes(data: IDefinitionEntityGenerationTarget, project: ProjectState): EntityGenerationError[];
|
package/dist/tree/state/{custom-entity → definition-entity}/validation/validation-schema.d.ts
RENAMED
|
@@ -1,54 +1,54 @@
|
|
|
1
1
|
import { EntityType } from '../../../../definitions';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
|
|
4
|
-
export declare function
|
|
5
|
-
type: z.ZodLiteral<EntityType.
|
|
4
|
+
export declare function getDefinitionEntityTypeSchema(): z.ZodUnion<[z.ZodObject<{
|
|
5
|
+
type: z.ZodLiteral<EntityType.DefinitionEntity>;
|
|
6
6
|
}, "strip", z.ZodTypeAny, {
|
|
7
|
-
type: EntityType.
|
|
7
|
+
type: EntityType.DefinitionEntity;
|
|
8
8
|
}, {
|
|
9
|
-
type: EntityType.
|
|
9
|
+
type: EntityType.DefinitionEntity;
|
|
10
10
|
}>, z.ZodRecord<z.ZodString, z.ZodAny>]>;
|
|
11
|
-
export declare function
|
|
11
|
+
export declare function getDefinitionEntityReferenceSchema(): z.ZodObject<{
|
|
12
12
|
id: z.ZodString;
|
|
13
13
|
type: z.ZodLiteral<EntityType.GenericReference>;
|
|
14
14
|
entityId: z.ZodString;
|
|
15
|
-
entityType: z.ZodLiteral<EntityType.
|
|
15
|
+
entityType: z.ZodLiteral<EntityType.DefinitionEntity>;
|
|
16
16
|
}, "strip", z.ZodTypeAny, {
|
|
17
17
|
id: string;
|
|
18
18
|
type: EntityType.GenericReference;
|
|
19
|
-
entityType: EntityType.
|
|
19
|
+
entityType: EntityType.DefinitionEntity;
|
|
20
20
|
entityId: string;
|
|
21
21
|
}, {
|
|
22
22
|
id: string;
|
|
23
23
|
type: EntityType.GenericReference;
|
|
24
|
-
entityType: EntityType.
|
|
24
|
+
entityType: EntityType.DefinitionEntity;
|
|
25
25
|
entityId: string;
|
|
26
26
|
}>;
|
|
27
|
-
export declare function
|
|
27
|
+
export declare function getDefinitionEntityBaseSchema(): z.ZodObject<{
|
|
28
28
|
id: z.ZodString;
|
|
29
|
-
type: z.ZodLiteral<EntityType.
|
|
29
|
+
type: z.ZodLiteral<EntityType.DefinitionEntity>;
|
|
30
30
|
name: z.ZodString;
|
|
31
31
|
description: z.ZodNullable<z.ZodString>;
|
|
32
32
|
static: z.ZodBoolean;
|
|
33
33
|
abstract: z.ZodBoolean;
|
|
34
34
|
}, "strip", z.ZodTypeAny, {
|
|
35
35
|
id: string;
|
|
36
|
-
type: EntityType.
|
|
36
|
+
type: EntityType.DefinitionEntity;
|
|
37
37
|
name: string;
|
|
38
38
|
description: string | null;
|
|
39
39
|
static: boolean;
|
|
40
40
|
abstract: boolean;
|
|
41
41
|
}, {
|
|
42
42
|
id: string;
|
|
43
|
-
type: EntityType.
|
|
43
|
+
type: EntityType.DefinitionEntity;
|
|
44
44
|
name: string;
|
|
45
45
|
description: string | null;
|
|
46
46
|
static: boolean;
|
|
47
47
|
abstract: boolean;
|
|
48
48
|
}>;
|
|
49
|
-
export declare function
|
|
49
|
+
export declare function getDefinitionEntityMetaSchema(): z.ZodObject<z.objectUtil.extendShape<{
|
|
50
50
|
id: z.ZodString;
|
|
51
|
-
type: z.ZodLiteral<EntityType.
|
|
51
|
+
type: z.ZodLiteral<EntityType.DefinitionEntity>;
|
|
52
52
|
name: z.ZodString;
|
|
53
53
|
description: z.ZodNullable<z.ZodString>;
|
|
54
54
|
static: z.ZodBoolean;
|
|
@@ -59,7 +59,7 @@ export declare function getCustomEntityMetaSchema(): z.ZodObject<z.objectUtil.ex
|
|
|
59
59
|
y: z.ZodNumber;
|
|
60
60
|
}>, "strip", z.ZodTypeAny, {
|
|
61
61
|
id: string;
|
|
62
|
-
type: EntityType.
|
|
62
|
+
type: EntityType.DefinitionEntity;
|
|
63
63
|
name: string;
|
|
64
64
|
description: string | null;
|
|
65
65
|
version: number;
|
|
@@ -69,7 +69,7 @@ export declare function getCustomEntityMetaSchema(): z.ZodObject<z.objectUtil.ex
|
|
|
69
69
|
abstract: boolean;
|
|
70
70
|
}, {
|
|
71
71
|
id: string;
|
|
72
|
-
type: EntityType.
|
|
72
|
+
type: EntityType.DefinitionEntity;
|
|
73
73
|
name: string;
|
|
74
74
|
description: string | null;
|
|
75
75
|
version: number;
|
|
@@ -78,29 +78,29 @@ export declare function getCustomEntityMetaSchema(): z.ZodObject<z.objectUtil.ex
|
|
|
78
78
|
static: boolean;
|
|
79
79
|
abstract: boolean;
|
|
80
80
|
}>;
|
|
81
|
-
export declare function
|
|
81
|
+
export declare function getDefinitionEntityGenerationTargetSchema(): z.ZodObject<z.objectUtil.extendShape<{
|
|
82
82
|
id: z.ZodString;
|
|
83
|
-
type: z.ZodLiteral<EntityType.
|
|
83
|
+
type: z.ZodLiteral<EntityType.DefinitionEntity>;
|
|
84
84
|
name: z.ZodString;
|
|
85
85
|
description: z.ZodNullable<z.ZodString>;
|
|
86
86
|
static: z.ZodBoolean;
|
|
87
87
|
abstract: z.ZodBoolean;
|
|
88
88
|
}, {}>, "strip", z.ZodTypeAny, {
|
|
89
89
|
id: string;
|
|
90
|
-
type: EntityType.
|
|
90
|
+
type: EntityType.DefinitionEntity;
|
|
91
91
|
name: string;
|
|
92
92
|
description: string | null;
|
|
93
93
|
static: boolean;
|
|
94
94
|
abstract: boolean;
|
|
95
95
|
}, {
|
|
96
96
|
id: string;
|
|
97
|
-
type: EntityType.
|
|
97
|
+
type: EntityType.DefinitionEntity;
|
|
98
98
|
name: string;
|
|
99
99
|
description: string | null;
|
|
100
100
|
static: boolean;
|
|
101
101
|
abstract: boolean;
|
|
102
102
|
}>;
|
|
103
|
-
export declare function
|
|
103
|
+
export declare function getDefinitionEntityParentReferenceSchema(): z.ZodUnion<[z.ZodObject<{
|
|
104
104
|
entityType: z.ZodLiteral<EntityType.Project>;
|
|
105
105
|
entityId: z.ZodString;
|
|
106
106
|
id: z.ZodString;
|
|
@@ -131,12 +131,12 @@ export declare function getCustomEntityParentReferenceSchema(): z.ZodUnion<[z.Zo
|
|
|
131
131
|
entityType: EntityType.DataType;
|
|
132
132
|
entityId: string;
|
|
133
133
|
}>]>;
|
|
134
|
-
export declare function
|
|
135
|
-
type: z.ZodLiteral<EntityType.
|
|
134
|
+
export declare function getDefinitionEntityExtendsReferencesSchema(): z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
135
|
+
type: z.ZodLiteral<EntityType.DefinitionEntity>;
|
|
136
136
|
}, "strip", z.ZodTypeAny, {
|
|
137
|
-
type: EntityType.
|
|
137
|
+
type: EntityType.DefinitionEntity;
|
|
138
138
|
}, {
|
|
139
|
-
type: EntityType.
|
|
139
|
+
type: EntityType.DefinitionEntity;
|
|
140
140
|
}>, z.ZodRecord<z.ZodString, z.ZodAny>]>, z.ZodUnion<[z.ZodObject<{
|
|
141
141
|
type: z.ZodLiteral<EntityType.BuiltInBaseEntity>;
|
|
142
142
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -144,12 +144,12 @@ export declare function getCustomEntityExtendsReferencesSchema(): z.ZodArray<z.Z
|
|
|
144
144
|
}, {
|
|
145
145
|
type: EntityType.BuiltInBaseEntity;
|
|
146
146
|
}>, z.ZodRecord<z.ZodString, z.ZodAny>]>]>, "many">;
|
|
147
|
-
export declare function
|
|
148
|
-
type: z.ZodLiteral<EntityType.
|
|
147
|
+
export declare function getDefinitionEntityImplementsReferencesSchema(): z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
148
|
+
type: z.ZodLiteral<EntityType.DefinitionEntity>;
|
|
149
149
|
}, "strip", z.ZodTypeAny, {
|
|
150
|
-
type: EntityType.
|
|
150
|
+
type: EntityType.DefinitionEntity;
|
|
151
151
|
}, {
|
|
152
|
-
type: EntityType.
|
|
152
|
+
type: EntityType.DefinitionEntity;
|
|
153
153
|
}>, z.ZodRecord<z.ZodString, z.ZodAny>]>, z.ZodUnion<[z.ZodObject<{
|
|
154
154
|
type: z.ZodLiteral<EntityType.BuiltInBaseEntity>;
|
|
155
155
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -157,7 +157,7 @@ export declare function getCustomEntityImplementsReferencesSchema(): z.ZodArray<
|
|
|
157
157
|
}, {
|
|
158
158
|
type: EntityType.BuiltInBaseEntity;
|
|
159
159
|
}>, z.ZodRecord<z.ZodString, z.ZodAny>]>]>, "many">;
|
|
160
|
-
export declare function
|
|
160
|
+
export declare function getDefinitionEntityNestedEntitiesSchema(): z.ZodObject<{
|
|
161
161
|
properties: z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
162
162
|
type: z.ZodLiteral<EntityType.Property>;
|
|
163
163
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -180,11 +180,11 @@ export declare function getCustomEntityNestedEntitiesSchema(): z.ZodObject<{
|
|
|
180
180
|
type: EntityType.ActionDescriptor;
|
|
181
181
|
}>, z.ZodRecord<z.ZodString, z.ZodAny>]>, "many">;
|
|
182
182
|
extends: z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
183
|
-
type: z.ZodLiteral<EntityType.
|
|
183
|
+
type: z.ZodLiteral<EntityType.DefinitionEntity>;
|
|
184
184
|
}, "strip", z.ZodTypeAny, {
|
|
185
|
-
type: EntityType.
|
|
185
|
+
type: EntityType.DefinitionEntity;
|
|
186
186
|
}, {
|
|
187
|
-
type: EntityType.
|
|
187
|
+
type: EntityType.DefinitionEntity;
|
|
188
188
|
}>, z.ZodRecord<z.ZodString, z.ZodAny>]>, z.ZodUnion<[z.ZodObject<{
|
|
189
189
|
type: z.ZodLiteral<EntityType.BuiltInBaseEntity>;
|
|
190
190
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -193,11 +193,11 @@ export declare function getCustomEntityNestedEntitiesSchema(): z.ZodObject<{
|
|
|
193
193
|
type: EntityType.BuiltInBaseEntity;
|
|
194
194
|
}>, z.ZodRecord<z.ZodString, z.ZodAny>]>]>, "many">;
|
|
195
195
|
implements: z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
196
|
-
type: z.ZodLiteral<EntityType.
|
|
196
|
+
type: z.ZodLiteral<EntityType.DefinitionEntity>;
|
|
197
197
|
}, "strip", z.ZodTypeAny, {
|
|
198
|
-
type: EntityType.
|
|
198
|
+
type: EntityType.DefinitionEntity;
|
|
199
199
|
}, {
|
|
200
|
-
type: EntityType.
|
|
200
|
+
type: EntityType.DefinitionEntity;
|
|
201
201
|
}>, z.ZodRecord<z.ZodString, z.ZodAny>]>, z.ZodUnion<[z.ZodObject<{
|
|
202
202
|
type: z.ZodLiteral<EntityType.BuiltInBaseEntity>;
|
|
203
203
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -240,12 +240,12 @@ export declare function getCustomEntityNestedEntitiesSchema(): z.ZodObject<{
|
|
|
240
240
|
implements: (Record<string, any> | {
|
|
241
241
|
type: EntityType.BuiltInBaseEntity;
|
|
242
242
|
} | {
|
|
243
|
-
type: EntityType.
|
|
243
|
+
type: EntityType.DefinitionEntity;
|
|
244
244
|
})[];
|
|
245
245
|
extends: (Record<string, any> | {
|
|
246
246
|
type: EntityType.BuiltInBaseEntity;
|
|
247
247
|
} | {
|
|
248
|
-
type: EntityType.
|
|
248
|
+
type: EntityType.DefinitionEntity;
|
|
249
249
|
})[];
|
|
250
250
|
parent: {
|
|
251
251
|
id: string;
|
|
@@ -271,12 +271,12 @@ export declare function getCustomEntityNestedEntitiesSchema(): z.ZodObject<{
|
|
|
271
271
|
implements: (Record<string, any> | {
|
|
272
272
|
type: EntityType.BuiltInBaseEntity;
|
|
273
273
|
} | {
|
|
274
|
-
type: EntityType.
|
|
274
|
+
type: EntityType.DefinitionEntity;
|
|
275
275
|
})[];
|
|
276
276
|
extends: (Record<string, any> | {
|
|
277
277
|
type: EntityType.BuiltInBaseEntity;
|
|
278
278
|
} | {
|
|
279
|
-
type: EntityType.
|
|
279
|
+
type: EntityType.DefinitionEntity;
|
|
280
280
|
})[];
|
|
281
281
|
parent: {
|
|
282
282
|
id: string;
|
|
@@ -299,9 +299,9 @@ export declare function getCustomEntityNestedEntitiesSchema(): z.ZodObject<{
|
|
|
299
299
|
type: EntityType.ActionDescriptor;
|
|
300
300
|
})[];
|
|
301
301
|
}>;
|
|
302
|
-
export declare function
|
|
302
|
+
export declare function getDefinitionEntitySchema(): z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
303
303
|
id: z.ZodString;
|
|
304
|
-
type: z.ZodLiteral<EntityType.
|
|
304
|
+
type: z.ZodLiteral<EntityType.DefinitionEntity>;
|
|
305
305
|
name: z.ZodString;
|
|
306
306
|
description: z.ZodNullable<z.ZodString>;
|
|
307
307
|
static: z.ZodBoolean;
|
|
@@ -333,11 +333,11 @@ export declare function getCustomEntitySchema(): z.ZodObject<z.objectUtil.extend
|
|
|
333
333
|
type: EntityType.ActionDescriptor;
|
|
334
334
|
}>, z.ZodRecord<z.ZodString, z.ZodAny>]>, "many">;
|
|
335
335
|
extends: z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
336
|
-
type: z.ZodLiteral<EntityType.
|
|
336
|
+
type: z.ZodLiteral<EntityType.DefinitionEntity>;
|
|
337
337
|
}, "strip", z.ZodTypeAny, {
|
|
338
|
-
type: EntityType.
|
|
338
|
+
type: EntityType.DefinitionEntity;
|
|
339
339
|
}, {
|
|
340
|
-
type: EntityType.
|
|
340
|
+
type: EntityType.DefinitionEntity;
|
|
341
341
|
}>, z.ZodRecord<z.ZodString, z.ZodAny>]>, z.ZodUnion<[z.ZodObject<{
|
|
342
342
|
type: z.ZodLiteral<EntityType.BuiltInBaseEntity>;
|
|
343
343
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -346,11 +346,11 @@ export declare function getCustomEntitySchema(): z.ZodObject<z.objectUtil.extend
|
|
|
346
346
|
type: EntityType.BuiltInBaseEntity;
|
|
347
347
|
}>, z.ZodRecord<z.ZodString, z.ZodAny>]>]>, "many">;
|
|
348
348
|
implements: z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
349
|
-
type: z.ZodLiteral<EntityType.
|
|
349
|
+
type: z.ZodLiteral<EntityType.DefinitionEntity>;
|
|
350
350
|
}, "strip", z.ZodTypeAny, {
|
|
351
|
-
type: EntityType.
|
|
351
|
+
type: EntityType.DefinitionEntity;
|
|
352
352
|
}, {
|
|
353
|
-
type: EntityType.
|
|
353
|
+
type: EntityType.DefinitionEntity;
|
|
354
354
|
}>, z.ZodRecord<z.ZodString, z.ZodAny>]>, z.ZodUnion<[z.ZodObject<{
|
|
355
355
|
type: z.ZodLiteral<EntityType.BuiltInBaseEntity>;
|
|
356
356
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -391,18 +391,18 @@ export declare function getCustomEntitySchema(): z.ZodObject<z.objectUtil.extend
|
|
|
391
391
|
}>]>;
|
|
392
392
|
}>, "strip", z.ZodTypeAny, {
|
|
393
393
|
id: string;
|
|
394
|
-
type: EntityType.
|
|
394
|
+
type: EntityType.DefinitionEntity;
|
|
395
395
|
name: string;
|
|
396
396
|
description: string | null;
|
|
397
397
|
implements: (Record<string, any> | {
|
|
398
398
|
type: EntityType.BuiltInBaseEntity;
|
|
399
399
|
} | {
|
|
400
|
-
type: EntityType.
|
|
400
|
+
type: EntityType.DefinitionEntity;
|
|
401
401
|
})[];
|
|
402
402
|
extends: (Record<string, any> | {
|
|
403
403
|
type: EntityType.BuiltInBaseEntity;
|
|
404
404
|
} | {
|
|
405
|
-
type: EntityType.
|
|
405
|
+
type: EntityType.DefinitionEntity;
|
|
406
406
|
})[];
|
|
407
407
|
parent: {
|
|
408
408
|
id: string;
|
|
@@ -431,18 +431,18 @@ export declare function getCustomEntitySchema(): z.ZodObject<z.objectUtil.extend
|
|
|
431
431
|
abstract: boolean;
|
|
432
432
|
}, {
|
|
433
433
|
id: string;
|
|
434
|
-
type: EntityType.
|
|
434
|
+
type: EntityType.DefinitionEntity;
|
|
435
435
|
name: string;
|
|
436
436
|
description: string | null;
|
|
437
437
|
implements: (Record<string, any> | {
|
|
438
438
|
type: EntityType.BuiltInBaseEntity;
|
|
439
439
|
} | {
|
|
440
|
-
type: EntityType.
|
|
440
|
+
type: EntityType.DefinitionEntity;
|
|
441
441
|
})[];
|
|
442
442
|
extends: (Record<string, any> | {
|
|
443
443
|
type: EntityType.BuiltInBaseEntity;
|
|
444
444
|
} | {
|
|
445
|
-
type: EntityType.
|
|
445
|
+
type: EntityType.DefinitionEntity;
|
|
446
446
|
})[];
|
|
447
447
|
parent: {
|
|
448
448
|
id: string;
|
|
@@ -6,7 +6,7 @@ import { ReturnStatementState } from '../return-statement';
|
|
|
6
6
|
import { CallableEntityState, CanvasEntityState, EntityState, EntityWithLogicScopeState, IChangeSet, VariableState } from '../types';
|
|
7
7
|
import { ProjectState } from '../project/project';
|
|
8
8
|
import { InstalledProjectState } from '../installed-project';
|
|
9
|
-
import {
|
|
9
|
+
import { DefinitionEntityState } from '../definition-entity';
|
|
10
10
|
import { LoopState } from '../loop';
|
|
11
11
|
import { BuiltInBaseEntityState } from '../built-in-base-entity';
|
|
12
12
|
import { PrimitiveEntityState } from '../primitive-entity';
|
|
@@ -33,7 +33,7 @@ export declare class FunctionDeclarationState implements IFunctionDeclaration, B
|
|
|
33
33
|
inputs: ArgumentDeclarationState[];
|
|
34
34
|
returnStatements: ReturnStatementState[];
|
|
35
35
|
calls: CallableEntityState[];
|
|
36
|
-
parent: ProjectState | InstalledProjectState |
|
|
36
|
+
parent: ProjectState | InstalledProjectState | DefinitionEntityState | LoopState | BuiltInBaseEntityState | PrimitiveEntityState;
|
|
37
37
|
detachedChildren: CanvasEntityState[];
|
|
38
38
|
errors: EntityError[];
|
|
39
39
|
project: ProjectState;
|
|
@@ -70,7 +70,7 @@ export declare class FunctionDeclarationState implements IFunctionDeclaration, B
|
|
|
70
70
|
subscribeDetachedChild(child: CanvasEntityState): FunctionDeclarationState;
|
|
71
71
|
addInputDeclaration(input: ArgumentDeclarationState): FunctionDeclarationState;
|
|
72
72
|
removeInputDeclaration(input: ArgumentDeclarationState): FunctionDeclarationState;
|
|
73
|
-
setParent(parent: ProjectState | InstalledProjectState |
|
|
73
|
+
setParent(parent: ProjectState | InstalledProjectState | DefinitionEntityState | LoopState | BuiltInBaseEntityState | PrimitiveEntityState): FunctionDeclarationState;
|
|
74
74
|
setImplements(implementsEntity: ActionDescriptorState): FunctionDeclarationState;
|
|
75
75
|
addCall(entity: CallableEntityState): FunctionDeclarationState;
|
|
76
76
|
removeCall(entity: CallableEntityState): FunctionDeclarationState;
|
|
@@ -112,7 +112,7 @@ export declare class FunctionDeclarationState implements IFunctionDeclaration, B
|
|
|
112
112
|
};
|
|
113
113
|
getErrors(): EntityError[];
|
|
114
114
|
getShallowErrors(): EntityError[];
|
|
115
|
-
clone(parent?: InstalledProjectState | ProjectState |
|
|
115
|
+
clone(parent?: InstalledProjectState | ProjectState | DefinitionEntityState | LoopState | null, newId?: string | null, subscribe?: boolean, cloneBody?: boolean): FunctionDeclarationState;
|
|
116
116
|
getVariableInstances(): VariableInstanceState[];
|
|
117
117
|
getArgument(id: EntityId): ArgumentDeclarationState | null;
|
|
118
118
|
createCall(parent?: EntityWithLogicScopeState | ProjectState, overrides?: Partial<IFunctionCallTransfer>): FunctionCallState;
|
|
@@ -141,16 +141,16 @@ export declare function getFunctionDeclarationNestedEntitiesSchema(): z.ZodObjec
|
|
|
141
141
|
id: z.ZodString;
|
|
142
142
|
type: z.ZodLiteral<EntityType.GenericReference>;
|
|
143
143
|
entityId: z.ZodString;
|
|
144
|
-
entityType: z.ZodLiteral<EntityType.
|
|
144
|
+
entityType: z.ZodLiteral<EntityType.DefinitionEntity>;
|
|
145
145
|
}, "strip", z.ZodTypeAny, {
|
|
146
146
|
id: string;
|
|
147
147
|
type: EntityType.GenericReference;
|
|
148
|
-
entityType: EntityType.
|
|
148
|
+
entityType: EntityType.DefinitionEntity;
|
|
149
149
|
entityId: string;
|
|
150
150
|
}, {
|
|
151
151
|
id: string;
|
|
152
152
|
type: EntityType.GenericReference;
|
|
153
|
-
entityType: EntityType.
|
|
153
|
+
entityType: EntityType.DefinitionEntity;
|
|
154
154
|
entityId: string;
|
|
155
155
|
}>, z.ZodObject<{
|
|
156
156
|
id: z.ZodString;
|
|
@@ -210,7 +210,7 @@ export declare function getFunctionDeclarationNestedEntitiesSchema(): z.ZodObjec
|
|
|
210
210
|
} | {
|
|
211
211
|
id: string;
|
|
212
212
|
type: EntityType.GenericReference;
|
|
213
|
-
entityType: EntityType.
|
|
213
|
+
entityType: EntityType.DefinitionEntity;
|
|
214
214
|
entityId: string;
|
|
215
215
|
} | {
|
|
216
216
|
id: string;
|
|
@@ -251,7 +251,7 @@ export declare function getFunctionDeclarationNestedEntitiesSchema(): z.ZodObjec
|
|
|
251
251
|
} | {
|
|
252
252
|
id: string;
|
|
253
253
|
type: EntityType.GenericReference;
|
|
254
|
-
entityType: EntityType.
|
|
254
|
+
entityType: EntityType.DefinitionEntity;
|
|
255
255
|
entityId: string;
|
|
256
256
|
} | {
|
|
257
257
|
id: string;
|
|
@@ -347,16 +347,16 @@ export declare function getFunctionDeclarationSchema(): z.ZodObject<z.objectUtil
|
|
|
347
347
|
id: z.ZodString;
|
|
348
348
|
type: z.ZodLiteral<EntityType.GenericReference>;
|
|
349
349
|
entityId: z.ZodString;
|
|
350
|
-
entityType: z.ZodLiteral<EntityType.
|
|
350
|
+
entityType: z.ZodLiteral<EntityType.DefinitionEntity>;
|
|
351
351
|
}, "strip", z.ZodTypeAny, {
|
|
352
352
|
id: string;
|
|
353
353
|
type: EntityType.GenericReference;
|
|
354
|
-
entityType: EntityType.
|
|
354
|
+
entityType: EntityType.DefinitionEntity;
|
|
355
355
|
entityId: string;
|
|
356
356
|
}, {
|
|
357
357
|
id: string;
|
|
358
358
|
type: EntityType.GenericReference;
|
|
359
|
-
entityType: EntityType.
|
|
359
|
+
entityType: EntityType.DefinitionEntity;
|
|
360
360
|
entityId: string;
|
|
361
361
|
}>, z.ZodObject<{
|
|
362
362
|
id: z.ZodString;
|
|
@@ -420,7 +420,7 @@ export declare function getFunctionDeclarationSchema(): z.ZodObject<z.objectUtil
|
|
|
420
420
|
} | {
|
|
421
421
|
id: string;
|
|
422
422
|
type: EntityType.GenericReference;
|
|
423
|
-
entityType: EntityType.
|
|
423
|
+
entityType: EntityType.DefinitionEntity;
|
|
424
424
|
entityId: string;
|
|
425
425
|
} | {
|
|
426
426
|
id: string;
|
|
@@ -469,7 +469,7 @@ export declare function getFunctionDeclarationSchema(): z.ZodObject<z.objectUtil
|
|
|
469
469
|
} | {
|
|
470
470
|
id: string;
|
|
471
471
|
type: EntityType.GenericReference;
|
|
472
|
-
entityType: EntityType.
|
|
472
|
+
entityType: EntityType.DefinitionEntity;
|
|
473
473
|
entityId: string;
|
|
474
474
|
} | {
|
|
475
475
|
id: string;
|