@elyx-code/project-logic-tree 0.0.6848 → 0.0.6851

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
@@ -705,6 +705,8 @@ export declare const atlassianAuthExternalConnectionBuiltInBaseEntityIntegration
705
705
 
706
706
  export declare const atlassianAuthExternalConnectionBuiltInBaseEntityIntegrationPropertyRef: IPropertyReference;
707
707
 
708
+ export declare const ATTACHING_PERSISTED_ENTITIES_TO_DATABASES_EXPLANATION: string;
709
+
708
710
  export declare const audienceStringListDT: IDataTypeTransfer;
709
711
 
710
712
  export declare function average(...numsRaw: unknown[]): number;
@@ -12611,7 +12613,10 @@ export declare enum BaseValueDescriptorIds {
12611
12613
  NonInteractiveEntityReferenced = "non-interactive-entity-referenced",
12612
12614
  InvalidParentRelationType = "invalid-parent-relation-type",
12613
12615
  CannotImplementExternalIntegrationConnectionDirectly = "cannot-implement-external-integration-connection-directly",
12614
- IncompatibleReaderAndWriter = "incompatible-reader-and-writer"
12616
+ IncompatibleReaderAndWriter = "incompatible-reader-and-writer",
12617
+ PersistedEntityWithGivenNameNotFoundWhenEnrichingSQLQueryTableAgainstProjectState = "persisted-entity-with-given-name-not-found-when-enriching-sql-query-table-against-project-state",
12618
+ PropertyWithGivenNameNotFoundWhenEnrichingSQLQueryColumnAgainstProjectState = "property-with-given-name-not-found-when-enriching-sql-query-column-against-project-state",
12619
+ GenericSQLQueryEnrichmentError = "generic-sql-query-enrichment-error"
12615
12620
  }
12616
12621
 
12617
12622
  export declare type EntityId = string;
@@ -15128,6 +15133,20 @@ export declare enum BaseValueDescriptorIds {
15128
15133
 
15129
15134
  export declare function generateActionExample(actionName: string, properties: Record<string, string>): string;
15130
15135
 
15136
+ export declare function generateAllAvailableCalleesExplanation(project: ProjectState, caller: CallerEntityState | null, fromError?: boolean): Promise<{
15137
+ explanations: {
15138
+ id: GenerationExplanationIds.AllAvailableCalleeEntitiesForGivenCaller | GenerationExplanationIds.AllAvailableCallableEntities;
15139
+ message: string;
15140
+ }[];
15141
+ }>;
15142
+
15143
+ export declare function generateAllAvailableCallersExplanation(project: ProjectState, callee: CallableEntityState | null, fromError?: boolean): Promise<{
15144
+ explanations: {
15145
+ id: GenerationExplanationIds.AllAvailableCallerEntitiesForGivenCallee | GenerationExplanationIds.AllAvailableCallerEntities;
15146
+ message: string;
15147
+ }[];
15148
+ }>;
15149
+
15131
15150
  export declare function generateAllAvailableMethodsThatCanBeCalledAsInternalCallsExplanation(project: ProjectState): {
15132
15151
  explanations: {
15133
15152
  id: GenerationExplanationIds.AllAvailableMethodsThatCanBeCalledAsInternalCalls | GenerationExplanationIds.ReasonsForMethodsNotAvailableAsInternalCalls;
@@ -15462,7 +15481,16 @@ export declare enum BaseValueDescriptorIds {
15462
15481
  AllAbstractNonStaticDefinitionEntities = "all-abstract-non-static-definition-entities-explanation",
15463
15482
  AllInstanciatableDefinitionEntities = "all-instantiatable-definition-entities-explanation",
15464
15483
  AutoReplacedExistingValueWriterForNewGiven = "auto-replaced-existing-value-writer-for-new-given-explanation",
15465
- AutoResolvedCalledByBasedOnValueWriter = "auto-resolved-calledBy-based-on-value-writer-explanation"
15484
+ AutoResolvedCalledByBasedOnValueWriter = "auto-resolved-calledBy-based-on-value-writer-explanation",
15485
+ AllAvailableColumnNamesForSQLEnrichmentInCurrentQuery = "all-available-column-names-for-sql-enrichment-in-current-query-explanation",
15486
+ AllPropertiesThatCouldBeSelectedAsColumnsInSQLQuery = "all-properties-that-could-be-selected-as-columns-in-sql-query-explanation",
15487
+ AllTableNamesForSQLEnrichmentForGivenDatabase = "all-table-names-for-sql-enrichment-for-given-database-explanation",
15488
+ AllTableNamesForSQLEnrichment = "all-table-names-for-sql-enrichment-explanation",
15489
+ SearchStatementHydration = "search-statement-hydration-explanation",
15490
+ PersistedEntities = "persisted-entities-explanation",
15491
+ AttachingPersistedEntitiesToDatabases = "attaching-persisted-entities-to-databases-explanation",
15492
+ FullSQLSelectableBreakdown = "full-sql-selectable-breakdown-explanation",
15493
+ CurrentlyUnattachedPersistedEntities = "currently-unattached-persisted-entities-explanation"
15466
15494
  }
15467
15495
 
15468
15496
  /** lodash-like get(obj, path, defaultValue) with precise "missing" detection */
@@ -15524,12 +15552,26 @@ export declare enum BaseValueDescriptorIds {
15524
15552
 
15525
15553
  export declare function getAllBuiltInEntityIdsAsync(options?: YieldOptions): Promise<Set<EntityId>>;
15526
15554
 
15555
+ export declare function getAllColumnNamesSelectableInQueryExplanation(state: SearchStatementState, project: ProjectState): {
15556
+ explanations: {
15557
+ id: GenerationExplanationIds.AllAvailableColumnNamesForSQLEnrichmentInCurrentQuery;
15558
+ message: string;
15559
+ }[];
15560
+ };
15561
+
15527
15562
  export declare function getAllGloballyDeclaredFunctionDeclarationsExplanation(project: ProjectState): string;
15528
15563
 
15529
15564
  export declare function getAllGlobalValueReadingEntities(project: ProjectState, options?: YieldOptions): Promise<ValueReadingEntityState[]>;
15530
15565
 
15531
15566
  export declare function getAllGlobalValueWritingEntities(project: ProjectState, options?: YieldOptions): Promise<ValueWritingEntityState[]>;
15532
15567
 
15568
+ export declare function getAllTableNamesForGivenDatabaseExplanation(database: DefinitionEntityState): {
15569
+ explanations: {
15570
+ id: GenerationExplanationIds.AllTableNamesForSQLEnrichmentForGivenDatabase | GenerationExplanationIds.PersistedEntities | GenerationExplanationIds.AttachingPersistedEntitiesToDatabases;
15571
+ message: string;
15572
+ }[];
15573
+ };
15574
+
15533
15575
  export declare function getAllValueReadingChildren(entity: CanvasEntityState | InternalCallState): ValueReadingEntityState[];
15534
15576
 
15535
15577
  export declare function getAllValueWriterEntities(project: ProjectState): {
@@ -16387,6 +16429,12 @@ export declare enum BaseValueDescriptorIds {
16387
16429
 
16388
16430
  export declare function getDatabaseEntities(project: ProjectState): DefinitionEntityState[];
16389
16431
 
16432
+ /**
16433
+ * Returns the database entity assigned to the given definition entity
16434
+ *
16435
+ * @param {DefinitionEntityState} entity - The definition entity (assumed to be persisted) for which to retrieve the assigned database entity.
16436
+ * @returns {DefinitionEntityState | null} The database entity assigned to the given definition entity, or null if not found or if the input entity is invalid.
16437
+ */
16390
16438
  export declare function getDatabaseEntity(entity: DefinitionEntityState): DefinitionEntityState | null;
16391
16439
 
16392
16440
  export declare function getDate(input: ISODateString): number;
@@ -18724,6 +18772,13 @@ export declare enum BaseValueDescriptorIds {
18724
18772
 
18725
18773
  declare function getFromClauseFromSelectStatement(selectStatement: SelectStmt): FromClause | null;
18726
18774
 
18775
+ export declare function getFullSQLSelectableBreakdown(project: ProjectState): {
18776
+ explanations: {
18777
+ id: GenerationExplanationIds.FullSQLSelectableBreakdown | GenerationExplanationIds.PersistedEntities | GenerationExplanationIds.AttachingPersistedEntitiesToDatabases;
18778
+ message: string;
18779
+ }[];
18780
+ };
18781
+
18727
18782
  export declare function getGenerationTargetSchemaBasedOnType(entity: {
18728
18783
  type: EntityType;
18729
18784
  [key: string]: any;
@@ -19576,6 +19631,9 @@ export declare enum BaseValueDescriptorIds {
19576
19631
  */
19577
19632
  export declare function getTouchedCanvasEntitiesFromChangeSet(changeSet: ChangeSet, options?: {
19578
19633
  shallowMissingActivesError?: boolean;
19634
+ excludeAffected?: boolean;
19635
+ excludeAdded?: boolean;
19636
+ excludeUpdated?: boolean;
19579
19637
  }): CanvasEntityState[];
19580
19638
 
19581
19639
  export declare const getTzOffsetAtArg: IValueDescriptorTransfer;
@@ -30036,6 +30094,8 @@ export declare enum BaseValueDescriptorIds {
30036
30094
 
30037
30095
  export declare type PersistChangeSetEntityActionRequestPayload = IEntityActionRequestPayload<PersistChangeSetEntityActionPayload>;
30038
30096
 
30097
+ export declare const PERSISTED_ENTITIES_EXPLANATION: string;
30098
+
30039
30099
  export declare const persistedBuiltInBaseEntity: IBuiltInBaseEntityTransfer;
30040
30100
 
30041
30101
  export declare const persistedBuiltInBaseEntityBaseColumnProperty: IPropertyTransfer;
@@ -31589,6 +31649,8 @@ export declare enum BaseValueDescriptorIds {
31589
31649
  SameBothGlobal = "same-both-global"
31590
31650
  }
31591
31651
 
31652
+ export declare const SEARCH_STATEMENT_HYDRATION_EXPLANATION = "The 'query' field of 'search' entities gets stored naivly as pure text, but when we interact with it, it gets just-in-time hydration against the existing project state to become a fully typed SQL AST.\nThis means that you can write any raw SQL query in the 'query' field, and the project checks that any column and table references are actually found in the project.\nSpecifically the names of the 'properties' of any 'definition-entity' that implements the \"persisted\" 'built-in-base-entity' are matched against any columns and tables, respectively, found in the query.\nDefinition entity names are turned into table names by converting them to pascal case. For example \"My new Entity\" turns into \"MyNewEntity\".\nProperty names are turned into column names by converting them to camel case. For example \"My new property\" turns into \"myNewProperty\".\nIf any of the referenced tables or columns aren't found in the project, an error is shown and the referenced is SAFELY removed from the query.\nSame occurs with interpolated values.\nOnly 'input-map' values belonging to the same parent 'search' entity can be used inside the query. Like so: {{::inputMapId}}.\nIf any of the referenced input-maps aren't found in the parent 'search' entity, they will be ignored and SAFELY removed from the query, no errors are shown.\nA query (and therefore a 'search' entity) can only reference tables in a single database, if two 'definition-entities' that implement the \"persisted\" 'built-in-base-entity' belong to two different parent databases, the table selected first will determine what database is being queried, and the other table won't be available for this query.\nIf any of the referenced entities changes, the project will auto-update the query to reflect the changes.";
31653
+
31592
31654
  export declare enum SearchDependencyField {
31593
31655
  Parent = "search-parent-field",
31594
31656
  DataTypeEntity = "search-data-type-entity-field",