@elyx-code/project-logic-tree 0.0.6346 → 0.0.6348

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/index.d.ts CHANGED
@@ -1,8 +1,10 @@
1
1
  import { BinaryExpr } from 'sql-parser-cst';
2
+ import { DTOAction } from '@elyx-code/definitions';
2
3
  import { Events } from '@elyx-code/common-ts-utils';
3
4
  import { Expr } from 'sql-parser-cst';
4
5
  import { ForSystemTimeAsOfExpr } from 'sql-parser-cst';
5
6
  import { FromClause } from 'sql-parser-cst';
7
+ import { ILiveMessageDTO } from '@elyx-code/definitions';
6
8
  import { JoinExpr } from 'sql-parser-cst';
7
9
  import { Keyword } from 'sql-parser-cst';
8
10
  import { LimitClause } from 'sql-parser-cst';
@@ -1538,14 +1540,10 @@ export declare type ChildReference = IFunctionDeclarationReference | IInstalledP
1538
1540
 
1539
1541
  export declare const CHILDREN_TYPES: EntityType[];
1540
1542
 
1541
- export declare type CloneEntityActionRequestPayload = IEntityActionRequestPayload<CloneSingleEntityActionPayload>;
1542
-
1543
1543
  export declare function cloneProject(project: ProjectState, { enrich, }?: {
1544
1544
  enrich: boolean;
1545
1545
  }): ProjectState;
1546
1546
 
1547
- export declare type CloneSingleEntityActionPayload = Pick<UserManagedElementShallowTransfer, 'id' | 'type'> & Partial<UserManagedElementShallowTransfer>;
1548
-
1549
1547
  declare class ColumnRef implements ISearchNode {
1550
1548
  owner: SearchStatementState;
1551
1549
  source: ColumnRef | PropertyState | SearchStatementLiteralValue | null;
@@ -1916,8 +1914,6 @@ export declare function createDefinitionEntityFromJSONObject(data: {
1916
1914
  changeSet: IChangeSet<DefinitionEntityState>;
1917
1915
  };
1918
1916
 
1919
- export declare type CreateEntityActionRequestPayload = IEntityActionRequestPayload<CreateSingleEntityActionPayload>;
1920
-
1921
1917
  export declare function createEntityError(error: IEntityError): {
1922
1918
  new: boolean;
1923
1919
  error: EntityError;
@@ -1962,8 +1958,6 @@ export declare enum CreateNewOutputIds {
1962
1958
 
1963
1959
  export declare function createSemanticId(entityName: string, entityType: EntityType, project: ProjectState): string;
1964
1960
 
1965
- export declare type CreateSingleEntityActionPayload = UserManagedElementShallowTransfer;
1966
-
1967
1961
  export declare function createStateFromGenerationTargetType(entity: ElementGenerationTarget, parentProjectState: ProjectState): UserManagedEntityState;
1968
1962
 
1969
1963
  export declare function createStateFromType(entity: Element_2 | ElementTransfer, parentProjectState: ProjectState): BaseState;
@@ -2473,8 +2467,6 @@ declare namespace definitionEntityValidation {
2473
2467
  }
2474
2468
  export { definitionEntityValidation }
2475
2469
 
2476
- export declare type DeleteEntityActionRequestPayload = IEntityActionRequestPayload<DeleteSingleEntityActionPayload>;
2477
-
2478
2470
  export declare const deletePersistedEntityMethod: IFunctionDeclarationTransfer;
2479
2471
 
2480
2472
  export declare const deletePersistedEntityMethodParentRef: IBuiltInBaseEntityReference;
@@ -2483,8 +2475,6 @@ export declare function deleteRootProject(where: {
2483
2475
  id: string;
2484
2476
  }): null;
2485
2477
 
2486
- export declare type DeleteSingleEntityActionPayload = Pick<UserManagedElementShallowTransfer, 'id' | 'type'>;
2487
-
2488
2478
  export declare const DRAGGABLE_CALLABLE_TYPES: EntityType[];
2489
2479
 
2490
2480
  export declare const DRAGGABLE_CALLER_TYPES: EntityType[];
@@ -2798,21 +2788,7 @@ export declare const ENTITY_WITH_USER_MANAGED_SINGLE_IMPLEMENTS_TYPES: EntityTyp
2798
2788
 
2799
2789
  export declare const ENTITY_WITH_VALUE_TYPES: EntityType[];
2800
2790
 
2801
- export declare enum EntityAction {
2802
- PersistChangeSet = "persist-change-set",
2803
- CreateSingle = "create-single",
2804
- CreateBulk = "create-bulk",
2805
- CreateSingleNested = "create-single-nested",
2806
- CreateBulkNested = "create-bulk-nested",
2807
- Update = "update",
2808
- Clone = "clone",
2809
- Delete = "delete",
2810
- Load = "load",
2811
- LoadNested = "load-nested",
2812
- LoadVersion = "load-version"
2813
- }
2814
-
2815
- export declare type EntityActionPayload = CreateSingleEntityActionPayload | CloneSingleEntityActionPayload | DeleteSingleEntityActionPayload | UpdateSingleEntityActionPayload | PersistChangeSetEntityActionPayload;
2791
+ export declare type EntityActionPayload = PersistChangeSetEntityActionPayload;
2816
2792
 
2817
2793
  export declare class EntityError<TCode = SharedEntityErrorCode | EntityInstanceErrorCode> implements IEntityError<TCode> {
2818
2794
  id: string;
@@ -8873,13 +8849,10 @@ export declare interface IEditor extends IUndoableInterface, IValueResolutionCon
8873
8849
  resolveInitialChildrenPositions(parent: CanvasEntityState | null, children: CanvasEntityState[], changeSet: ChangeSet | null): CanvasEntityState[];
8874
8850
  }
8875
8851
 
8876
- export declare interface IEntityActionRequestPayload<P = EntityActionPayload> {
8877
- action: EntityAction;
8878
- author: string;
8879
- actionId: string;
8880
- timestamp: string;
8881
- projectId: string;
8882
- sessionId: string;
8852
+ export declare interface IEntityActionRequestPayload<P extends {
8853
+ [key: string]: any;
8854
+ } = EntityActionPayload> extends ILiveMessageDTO<DTOAction.PersistProjectChangeSet> {
8855
+ action: DTOAction.PersistProjectChangeSet;
8883
8856
  payload: P;
8884
8857
  }
8885
8858
 
@@ -13924,12 +13897,8 @@ export declare type UntypedValue = string | number | boolean | null | Date | {
13924
13897
  [key: string]: UntypedValue;
13925
13898
  } | UntypedValue[];
13926
13899
 
13927
- export declare type UpdateEntityActionRequestPayload = IEntityActionRequestPayload<UpdateSingleEntityActionPayload>;
13928
-
13929
13900
  export declare function updateErrorsList(oldErrors: EntityError[], newErrors: EntityError[]): EntityError[];
13930
13901
 
13931
- export declare type UpdateSingleEntityActionPayload = Partial<UserManagedElementShallowTransfer>;
13932
-
13933
13902
  export declare const urlDefaultValue: ILiteralValueTransfer;
13934
13903
 
13935
13904
  export declare const USER_MANAGED_ENTITY_TYPES: EntityType[];