@elyx-code/project-logic-tree 0.0.6287 → 0.0.6289

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
@@ -394,7 +394,7 @@ export declare class ArgumentDeclarationState extends VersionedState implements
394
394
  setDefaultValue(defaultValue: LiteralValueState): ArgumentDeclarationState;
395
395
  clone(changeSet?: ChangeSet | null, parent?: EntryPointEntityState | null, newId?: string | null, subscribe?: boolean): ArgumentDeclarationState;
396
396
  getDataType(_changeSet?: ChangeSet | null): DataTypeState | null;
397
- setDataType(dataType: DataTypeState): ArgumentDeclarationState;
397
+ setDataType(dataType: DataTypeState | null, changeSet?: ChangeSet | null): ArgumentDeclarationState;
398
398
  removeDataType(): ArgumentDeclarationState;
399
399
  }
400
400
 
@@ -1083,6 +1083,8 @@ export declare class BuiltInBaseEntityState extends VersionedState implements Ba
1083
1083
  project: ProjectState;
1084
1084
  constructor(initialData: IBuiltInBaseEntity | IBuiltInBaseEntityTransfer, parentProjectState: ProjectState);
1085
1085
  static repository: IReadOnlyEntityPersistanceRepository;
1086
+ get allProperties(): PropertyState[];
1087
+ get allBasePropertiesFromOriginalParents(): PropertyState[];
1086
1088
  get allBasePropertiesFromExtendedAndImplementedEntities(): PropertyState[];
1087
1089
  get extendedPropertiesFromOriginalParents(): PropertyState[];
1088
1090
  get implementedPropertiesFromOriginalParents(): PropertyState[];
@@ -1310,6 +1312,8 @@ export declare function checkIsCallableEntityReachable(entity: CallableEntitySta
1310
1312
 
1311
1313
  export declare function checkIsCanvasEntity(entity: EntityState): boolean;
1312
1314
 
1315
+ export declare function checkIsDefEntityInlineDeclaredForSearchOutputType(entity: DefinitionEntityState | null): boolean;
1316
+
1313
1317
  export declare function checkIsDetachedBranch(entity: CanvasEntityState): boolean;
1314
1318
 
1315
1319
  export declare function checkIsDetachedBranchShallow(entity: CanvasEntityState): boolean;
@@ -1963,6 +1967,7 @@ export declare class DataTypeState extends VersionedState implements IDataType,
1963
1967
  addToOrGroup(child: DataTypeState): DataTypeState;
1964
1968
  setEntity(entity: DefinitionEntityState | PrimitiveEntityState | ActionDescriptorState | BuiltInBaseEntityState | LiteralValueState | null): DataTypeState;
1965
1969
  isObject(): boolean;
1970
+ canBeObject(): boolean;
1966
1971
  hasStrictObjectStructure(): boolean;
1967
1972
  inferFromInputs(inputs: VariableInputMapState[], changeSet?: ChangeSet | null): IChangeSet<DataTypeState>;
1968
1973
  }
@@ -2126,6 +2131,8 @@ export declare class DefinitionEntityState extends VersionedState implements Bas
2126
2131
  modifiedData: IDefinitionEntityGenerationTarget;
2127
2132
  };
2128
2133
  get interactive(): boolean;
2134
+ get allProperties(): PropertyState[];
2135
+ get allBasePropertiesFromOriginalParents(): PropertyState[];
2129
2136
  get allBasePropertiesFromExtendedAndImplementedEntities(): PropertyState[];
2130
2137
  get allBaseMethodsFromExtendedAndImplementedEntities(): (FunctionDeclarationState | ActionDescriptorState)[];
2131
2138
  get extendedPropertiesFromOriginalParents(): PropertyState[];
@@ -3058,6 +3065,10 @@ export declare function fromChangeSetToRecordChangeSet<TSelf extends {
3058
3065
  type: EntityType;
3059
3066
  } = EntityState>(changeSet: IChangeSet<TSelf, TGeneric>): IRecordChangeSet<TSelf, TGeneric>;
3060
3067
 
3068
+ export declare function fromLiteralValueTypeToPrimitiveType(valueType: SearchLiteralValueType): PrimitiveTypes;
3069
+
3070
+ declare function fromNameToTableDescription(tableName: string, project: ProjectState): ITable | null;
3071
+
3061
3072
  declare function fromOrderByClauseToSortStatements(orderByClause: OrderByClause, _selectStatement: SelectStmt, _allColumns: IColumnMapping[], state: SearchStatementState): SortStatement[];
3062
3073
 
3063
3074
  declare function fromSelectClauseColumnsToColumnMappings(selectClause: SelectClause, objectName?: string): IShallowColumnMapping[];
@@ -4230,6 +4241,8 @@ export declare function getDeclarationOutputedError(entity: PassThroughCallableE
4230
4241
 
4231
4242
  export declare function getDeepestScope(scopeOwners: EntityWithLogicScopeState[]): EntityWithLogicScopeState | null;
4232
4243
 
4244
+ export declare function getDefaultRelationalDatabaseEntityOrFirst(project: ProjectState): DefinitionEntityState | null;
4245
+
4233
4246
  export declare function getDraggableCallableEntityReferenceSchema(): z_2.ZodUnion<[z_2.ZodUnion<[z_2.ZodObject<{
4234
4247
  id: z_2.ZodString;
4235
4248
  type: z_2.ZodLiteral<import("../../..").EntityType.GenericReference>;
@@ -8887,7 +8900,7 @@ export declare class InputMapState extends VersionedState implements IInputMap,
8887
8900
  afterAllChildrenInitialized(changeSet?: ChangeSet | null): IChangeSet<InputMapState>;
8888
8901
  addSelfToProject(changeSet?: ChangeSet | null): IChangeSet<InputMapState>;
8889
8902
  setParent(parent: PassThroughCallableEntityState, changeSet?: ChangeSet | null): InputMapState;
8890
- setDataType(dataType: DataTypeState): InputMapState;
8903
+ setDataType(dataType: DataTypeState | null, changeSet?: ChangeSet | null): InputMapState;
8891
8904
  removeDataType(): InputMapState;
8892
8905
  setDeclaration(declaration: ArgumentDeclarationState | PropertyState | ValueDescriptorState | null): InputMapState;
8893
8906
  initChildren(changeSet?: ChangeSet | null): InputMapState;
@@ -11131,7 +11144,7 @@ export declare class OutputMapState extends VersionedState implements IOutputMap
11131
11144
  addValueReader(entity: ValueReadingEntityState, changeSet?: ChangeSet | null): OutputMapState;
11132
11145
  removeValueReader(valueReader: ValueReadingEntityState, changeSet?: ChangeSet | null): OutputMapState;
11133
11146
  setParent(parent: PassThroughCallableEntityWithOutputsState, changeSet?: ChangeSet | null): OutputMapState;
11134
- setDataType(dataType: DataTypeState): OutputMapState;
11147
+ setDataType(dataType: DataTypeState | null, changeSet?: ChangeSet | null): OutputMapState;
11135
11148
  removeDataType(): OutputMapState;
11136
11149
  setDeclaration(declaration: ReturnDeclarationState | PropertyState | ValueDescriptorState): OutputMapState;
11137
11150
  initChildren(changeSet?: ChangeSet | null): OutputMapState;
@@ -11367,6 +11380,8 @@ export declare class PrimitiveEntityState extends VersionedState implements Base
11367
11380
  project: ProjectState;
11368
11381
  constructor(initialData: IPrimitiveEntity | IPrimitiveEntityTransfer, parentProjectState: ProjectState);
11369
11382
  static repository: IReadOnlyEntityPersistanceRepository;
11383
+ get allProperties(): PropertyState[];
11384
+ get allBasePropertiesFromOriginalParents(): PropertyState[];
11370
11385
  get allBasePropertiesFromExtendedAndImplementedEntities(): PropertyState[];
11371
11386
  get extendedPropertiesFromOriginalParents(): PropertyState[];
11372
11387
  get implementedPropertiesFromOriginalParents(): PropertyState[];
@@ -11733,6 +11748,7 @@ export declare class PropertyState extends VersionedState implements IProperty,
11733
11748
  errors: EntityGenerationError[];
11734
11749
  modifiedData: Partial<IPropertyGenerationTarget>;
11735
11750
  };
11751
+ onProjectInitialized(_project: ProjectState, changeSet?: ChangeSet | null): PropertyState;
11736
11752
  subscribeDependents(dependencies: {
11737
11753
  entity: UserManagedEntityState;
11738
11754
  field: string;
@@ -11789,11 +11805,12 @@ export declare class PropertyState extends VersionedState implements IProperty,
11789
11805
  getErrors(): EntityError[];
11790
11806
  getShallowErrors(): EntityError[];
11791
11807
  clone(changeSet?: ChangeSet | null, parent?: DefinitionEntityState | null, newId?: string | null, subscribe?: boolean): PropertyState;
11792
- setDataType(dataType: DataTypeState): PropertyState;
11808
+ setDataType(dataType: DataTypeState | null, changeSet?: ChangeSet | null): PropertyState;
11793
11809
  removeDataType(): PropertyState;
11794
11810
  getDataType(changeSet?: ChangeSet | null): DataTypeState | null;
11795
11811
  getDefaultValue(): LiteralValueState | null;
11796
11812
  setDefaultValue(value: LiteralValueState): PropertyState;
11813
+ syncDataTypeWithImplementation(changeSet?: ChangeSet | null): IChangeSet<PropertyState>;
11797
11814
  }
11798
11815
 
11799
11816
  export declare function propertyToZodSchema(property: IProperty): z.ZodType<any>;
@@ -11906,6 +11923,8 @@ export declare function resolvePersistedDefinitionEntityDatabaseEntity(entity: D
11906
11923
 
11907
11924
  export declare function resolvePrimaryKeyProperty(entity: DefinitionEntityState): PropertyState | null;
11908
11925
 
11926
+ export declare function resolvePrimitiveEntityForSearchLiteralValueType(valueType: SearchLiteralValueType, project: ProjectState): PrimitiveEntityState;
11927
+
11909
11928
  export declare function resolvePrimitiveEntityName(primitiveEntity: {
11910
11929
  name: PrimitiveTypes;
11911
11930
  [key: string]: any;
@@ -12040,7 +12059,7 @@ export declare class ReturnDeclarationState extends VersionedState implements IR
12040
12059
  getDefaultValue(): LiteralValueState | null;
12041
12060
  setDefaultValue(defaultValue: LiteralValueState): ReturnDeclarationState;
12042
12061
  clone(changeSet?: ChangeSet | null, parent?: ReturnStatementState | BreakStatementState | ContinueStatementState | null, newId?: string | null, subscribe?: boolean): ReturnDeclarationState;
12043
- setDataType(dataType: DataTypeState | null): ReturnDeclarationState;
12062
+ setDataType(dataType: DataTypeState | null, changeSet?: ChangeSet | null): ReturnDeclarationState;
12044
12063
  removeDataType(): ReturnDeclarationState;
12045
12064
  inferDataType(changeSet?: ChangeSet | null): ReturnDeclarationState;
12046
12065
  getCounterparts(): ReturnDeclarationState[];
@@ -12187,6 +12206,8 @@ declare namespace returnStatementValidation {
12187
12206
  }
12188
12207
  export { returnStatementValidation }
12189
12208
 
12209
+ declare function sanitizeSQLIdentifierText(text: string): string;
12210
+
12190
12211
  export declare type ScopeCompatibility = ICompatibleSameBothLocalScope | ICompatibleSameBothGlobalScope | ICompatibleAInBScope | ICompatibleBInAScope | IIncompatibleParallelInProjectScope | IIncompatibleParallelInCommonParentScope | IIncompatibleAIsGlobalBIsNotScope | IIncompatibleBIsGlobalAIsNotScope;
12191
12212
 
12192
12213
  export declare enum ScopeCompatibilityType {
@@ -12464,6 +12485,8 @@ export { searchStatementState }
12464
12485
 
12465
12486
  declare namespace searchStatementUtils {
12466
12487
  export {
12488
+ sanitizeSQLIdentifierText,
12489
+ fromNameToTableDescription,
12467
12490
  loadProjectDatasources,
12468
12491
  getSelectStatementFromProgram,
12469
12492
  getFromClauseFromSelectStatement,
@@ -12840,6 +12863,8 @@ export declare function suggestNewIdForEntity(generatedEntity: ElementGeneration
12840
12863
 
12841
12864
  declare type SupportedOperators = string | PostgresqlOperatorExpr | Keyword<'IS'> | [Keyword<'IS'>, Keyword<'NOT'>] | [Keyword<'IS'>, Keyword<'DISTINCT'>, Keyword<'FROM'>] | [Keyword<'IS'>, Keyword<'NOT'>, Keyword<'DISTINCT'>, Keyword<'FROM'>] | Keyword<'IN'> | [Keyword<'NOT'>, Keyword<'IN'>] | Keyword<'LIKE' | 'RLIKE' | 'ILIKE' | 'GLOB' | 'MATCH'> | [Keyword<'NOT'>, Keyword<'LIKE' | 'RLIKE' | 'ILIKE' | 'GLOB' | 'MATCH'>];
12842
12865
 
12866
+ export declare function syncSearchEntityOutput(entity: SearchState, statement: SearchStatementState, changeSet: ChangeSet | null): void;
12867
+
12843
12868
  export declare const TERMINATION_TYPES: EntityType[];
12844
12869
 
12845
12870
  export declare type TerminationEntity = IReturnStatement | IBreakStatement | IContinueStatement;
@@ -13932,7 +13957,7 @@ export declare class ValueDescriptorState extends VersionedState implements IVal
13932
13957
  getShallowErrors(): EntityError[];
13933
13958
  clone(changeSet?: ChangeSet | null, parent?: ActionDescriptorState | LoopState | SearchState | null, newId?: string | null, subscribe?: boolean): ValueDescriptorState;
13934
13959
  getDataType(changeSet?: ChangeSet | null): DataTypeState | null;
13935
- setDataType(dataType: DataTypeState): ValueDescriptorState;
13960
+ setDataType(dataType: DataTypeState | null, changeSet?: ChangeSet | null): ValueDescriptorState;
13936
13961
  getDefaultValue(): LiteralValueState | null;
13937
13962
  setDefaultValue(defaultValue: LiteralValueState): ValueDescriptorState;
13938
13963
  removeDataType(): ValueDescriptorState;
@@ -14155,10 +14180,12 @@ export declare class VariableDeclarationState extends VersionedState implements
14155
14180
  clone(changeSet?: ChangeSet | null, parent?: EntryPointEntityState | ProjectState | null, newId?: string | null, subscribe?: boolean): VariableDeclarationState;
14156
14181
  addInternalCall(internalCall: InternalCallState): VariableDeclarationState;
14157
14182
  createInstance(parent?: EntityWithLogicScopeState | ProjectState, changeSet?: ChangeSet | null, overrides?: Partial<IVariableInstanceTransfer>): VariableInstanceState;
14158
- generateUnusedInputs(changeSet?: ChangeSet | null): IChangeSet<VariableDeclarationState>;
14159
- generateUnusedOutputs(changeSet?: ChangeSet | null): IChangeSet<VariableDeclarationState>;
14183
+ removeUnrecognizedInputs(changeSet?: ChangeSet | null): IChangeSet<VariableDeclarationState>;
14184
+ removeUnrecognizedOutputs(changeSet?: ChangeSet | null): IChangeSet<VariableDeclarationState>;
14185
+ syncInputs(changeSet?: ChangeSet | null): IChangeSet<VariableDeclarationState>;
14186
+ syncOutputs(changeSet?: ChangeSet | null): IChangeSet<VariableDeclarationState>;
14160
14187
  generateUnusedInternalCalls(changeSet?: ChangeSet | null): IChangeSet<VariableDeclarationState>;
14161
- setDataType(dataType: DataTypeState): VariableDeclarationState;
14188
+ setDataType(dataType: DataTypeState | null, changeSet?: ChangeSet | null): VariableDeclarationState;
14162
14189
  removeDataType(): VariableDeclarationState;
14163
14190
  getDataType(changeSet?: ChangeSet | null): DataTypeState | null;
14164
14191
  getUnusedInputs(): VariableInputMapState[];
@@ -14346,8 +14373,10 @@ export declare class VariableInstanceState extends VersionedState implements IVa
14346
14373
  clone(changeSet?: ChangeSet | null, parent?: EntryPointEntityState | ProjectState | null, newId?: string | null, subscribe?: boolean): VariableInstanceState;
14347
14374
  addInternalCall(internalCall: InternalCallState): VariableInstanceState;
14348
14375
  setDeclaration(declaration: VariableDeclarationState): VariableInstanceState;
14349
- generateUnusedInputs(changeSet?: ChangeSet | null): IChangeSet<VariableInstanceState>;
14350
- generateUnusedOutputs(changeSet?: ChangeSet | null): IChangeSet<VariableInstanceState>;
14376
+ removeUnrecognizedInputs(changeSet?: ChangeSet | null): IChangeSet<VariableInstanceState>;
14377
+ removeUnrecognizedOutputs(changeSet?: ChangeSet | null): IChangeSet<VariableInstanceState>;
14378
+ syncInputs(changeSet?: ChangeSet | null): IChangeSet<VariableInstanceState>;
14379
+ syncOutputs(changeSet?: ChangeSet | null): IChangeSet<VariableInstanceState>;
14351
14380
  generateUnusedInternalCalls(changeSet?: ChangeSet | null): IChangeSet<VariableInstanceState>;
14352
14381
  getDataType(changeSet?: ChangeSet | null): DataTypeState | null;
14353
14382
  getUnusedInputs(): VariableInputMapState[];