@elyx-code/project-logic-tree 0.0.6782 → 0.0.6784
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.cjs +108 -106
- package/dist/index.d.ts +138 -0
- package/dist/index.js +22264 -22122
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -653,6 +653,17 @@ export declare function asGenerationActionExample(payload: Record<string, any> |
|
|
|
653
653
|
|
|
654
654
|
export declare function assembleAndAddLiteralValueFromDataType(dataType: DataTypeState | null, valueOwner: EntityWithDefaultValueState, project: ProjectState, changeSet: ChangeSet | null): LiteralValueState;
|
|
655
655
|
|
|
656
|
+
export declare function assembleEntityPrintout(entityPrintout: {
|
|
657
|
+
lines: {
|
|
658
|
+
text: string;
|
|
659
|
+
indentLevel: number;
|
|
660
|
+
}[];
|
|
661
|
+
}, options?: {
|
|
662
|
+
singleLine?: boolean;
|
|
663
|
+
indentSize?: number;
|
|
664
|
+
singleLineSpacer?: string;
|
|
665
|
+
}): string;
|
|
666
|
+
|
|
656
667
|
export declare function assembleStandaloneLiteralValueFromDataType(dataType: DataTypeState | null, valueOwner: EntityWithValueState | ValueDescriptorState | PropertyState, project: ProjectState): LiteralValueState | null;
|
|
657
668
|
|
|
658
669
|
export declare const atlassianAuthExternalConnectionBuiltInBaseEntity: IBuiltInBaseEntityTransfer;
|
|
@@ -11989,6 +12000,10 @@ export declare function deleteFirstNItems(list: unknown): any[];
|
|
|
11989
12000
|
|
|
11990
12001
|
export declare function deleteLastNItems(list: unknown): any[];
|
|
11991
12002
|
|
|
12003
|
+
export declare function deleteObjectKey(obj: unknown, key: unknown): Record<string, unknown>;
|
|
12004
|
+
|
|
12005
|
+
export declare function deleteObjectNestedKey(obj: unknown, path: unknown): Record<string, unknown>;
|
|
12006
|
+
|
|
11992
12007
|
export declare const deletePersistedEntityMethod: IActionDescriptorTransfer;
|
|
11993
12008
|
|
|
11994
12009
|
export declare const deletePersistedEntityMethodParentRef: IBuiltInBaseEntityReference;
|
|
@@ -12540,6 +12555,20 @@ export declare enum EntityInstanceErrorCode {
|
|
|
12540
12555
|
|
|
12541
12556
|
export declare type EntityPayloadUnion = BuiltInBaseEntityPayloadUnion | ProjectPayloadUnion | InstalledProjectPayloadUnion | DefinitionEntityPayloadUnion | FunctionDeclarationPayloadUnion | GlobalEventPayloadUnion | VariableDeclarationPayloadUnion | VariableInstancePayloadUnion | InputMapPayloadUnion | OutputMapPayloadUnion | ConditionPayloadUnion | OperationPayloadUnion | FunctionCallPayloadUnion | ArgumentDeclarationPayloadUnion | PrimitiveEntityPayloadUnion | DataTypePayloadUnion | PropertyPayloadUnion | ActionDescriptorPayloadUnion | ReturnStatementPayloadUnion | ContinueStatementPayloadUnion | BreakStatementPayloadUnion | LoopPayloadUnion | SearchPayloadUnion | ValueDescriptorPayloadUnion | InternalCallPayloadUnion | LiteralValuePayloadUnion;
|
|
12542
12557
|
|
|
12558
|
+
export declare enum EntityPrintingFields {
|
|
12559
|
+
All = "all",
|
|
12560
|
+
Callers = "callers",
|
|
12561
|
+
ValueReaders = "value-readers",
|
|
12562
|
+
Declaration = "declaration",
|
|
12563
|
+
Id = "id",
|
|
12564
|
+
Type = "type",
|
|
12565
|
+
Name = "name",
|
|
12566
|
+
Description = "description",
|
|
12567
|
+
Extends = "extends",
|
|
12568
|
+
Implements = "implements",
|
|
12569
|
+
CodeName = "code-name"
|
|
12570
|
+
}
|
|
12571
|
+
|
|
12543
12572
|
export declare type EntityState = BuiltInBaseEntityState | ProjectState | InstalledProjectState | DefinitionEntityState | FunctionDeclarationState | GlobalEventState | VariableState | InputMapState | OutputMapState | ConditionState | OperationState | FunctionCallState | ArgumentDeclarationState | PrimitiveEntityState | DataTypeState | PropertyState | ActionDescriptorState | ReturnStatementState | ContinueStatementState | BreakStatementState | LoopState | SearchState | ValueDescriptorState | InternalCallState | LiteralValueState;
|
|
12544
12573
|
|
|
12545
12574
|
export declare type EntityStateConstructor = UserManagedEntityStateConstructor | BuiltInSystemEntityStateConstructor;
|
|
@@ -15155,6 +15184,9 @@ export declare enum GenerationExplanationIds {
|
|
|
15155
15184
|
PropertyImplementationAndExtensionAutoEnrichment = "property-implementation-and-extension-auto-enrichment-explanation"
|
|
15156
15185
|
}
|
|
15157
15186
|
|
|
15187
|
+
/** lodash-like get(obj, path, defaultValue) with precise "missing" detection */
|
|
15188
|
+
export declare function get<T = any, D = any>(obj: any, path: PathInput, defaultValue?: D): T | D;
|
|
15189
|
+
|
|
15158
15190
|
export declare const GET_PROJECT_OPTIONS_DEFAULTS: IGetProjectOptions;
|
|
15159
15191
|
|
|
15160
15192
|
declare function getAggregationStatementsFromSelectStatementSync(selectStatement: SelectStmt, scopeColumns: ColumnRef[], state: SearchStatementState, project: ProjectState, helpers?: {
|
|
@@ -22998,6 +23030,8 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
|
|
|
22998
23030
|
|
|
22999
23031
|
export declare function isLeapYearFn(input: ISODateString): boolean;
|
|
23000
23032
|
|
|
23033
|
+
export declare function isObject(v: any): v is Record<string, unknown>;
|
|
23034
|
+
|
|
23001
23035
|
/** Dates are exchanged as ISO 8601 strings (e.g., "2025-10-17T12:34:56.789Z"). */
|
|
23002
23036
|
export declare type ISODateString = string;
|
|
23003
23037
|
|
|
@@ -25038,6 +25072,8 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
|
|
|
25038
25072
|
|
|
25039
25073
|
export declare function median(...numsRaw: unknown[]): number;
|
|
25040
25074
|
|
|
25075
|
+
export declare function mergeArraysOfStringsWithoutDuplicates(arr1: string[], arr2: string[]): string[];
|
|
25076
|
+
|
|
25041
25077
|
/**
|
|
25042
25078
|
* Merges two definition entities by aligning their properties.
|
|
25043
25079
|
* Always returns the first entity (self) with its properties modified to match the second entity (sourceDefinitionEntity).
|
|
@@ -25053,6 +25089,11 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
|
|
|
25053
25089
|
|
|
25054
25090
|
export declare function mergeListOfEntities(oldErrors: EntityState[], newErrors: EntityState[]): EntityState[];
|
|
25055
25091
|
|
|
25092
|
+
/**
|
|
25093
|
+
* MergeObjects: shallow, immutable merge with rightmost-precedence.
|
|
25094
|
+
*/
|
|
25095
|
+
export declare function mergeObjects(...objs: unknown[]): Record<string, unknown>;
|
|
25096
|
+
|
|
25056
25097
|
/**
|
|
25057
25098
|
* Merges two property entities by aligning their attributes.
|
|
25058
25099
|
* Always returns the first entity (self) with its attributes modified to match the second entity (sourceProperty).
|
|
@@ -25209,6 +25250,8 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
|
|
|
25209
25250
|
|
|
25210
25251
|
export declare const NESTED_PROPERTY_HEIGHT = 26;
|
|
25211
25252
|
|
|
25253
|
+
export declare function nestedObjectKeyValueEquals(obj: unknown, path: unknown, expected: unknown): boolean;
|
|
25254
|
+
|
|
25212
25255
|
declare class NestedSearchStatement implements ISearchNode {
|
|
25213
25256
|
owner: SearchStatementState;
|
|
25214
25257
|
statement: SearchStatementState | null;
|
|
@@ -25981,6 +26024,8 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
|
|
|
25981
26024
|
|
|
25982
26025
|
export declare const objectDeleteNestedKeyOperationResponseDT: IDataTypeTransfer;
|
|
25983
26026
|
|
|
26027
|
+
export declare function objectEntries(obj: unknown): [string, unknown][];
|
|
26028
|
+
|
|
25984
26029
|
export declare const objectEntriesOperation: IActionDescriptorTransfer;
|
|
25985
26030
|
|
|
25986
26031
|
export declare const objectEntriesOperationError: IValueDescriptorTransfer;
|
|
@@ -25991,6 +26036,8 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
|
|
|
25991
26036
|
|
|
25992
26037
|
export declare const objectEntriesOperationResultDT: IDataTypeTransfer;
|
|
25993
26038
|
|
|
26039
|
+
export declare function objectHasKey(obj: unknown, key: unknown): boolean;
|
|
26040
|
+
|
|
25994
26041
|
export declare const objectHasKeyOperation: IActionDescriptorTransfer;
|
|
25995
26042
|
|
|
25996
26043
|
export declare const objectHasKeyOperationError: IValueDescriptorTransfer;
|
|
@@ -26005,6 +26052,8 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
|
|
|
26005
26052
|
|
|
26006
26053
|
export declare const objectHasKeyOperationResultVoidDT: IDataTypeTransfer;
|
|
26007
26054
|
|
|
26055
|
+
export declare function objectHasNestedKey(obj: unknown, path: unknown): boolean;
|
|
26056
|
+
|
|
26008
26057
|
export declare const objectHasNestedKeyOperation: IActionDescriptorTransfer;
|
|
26009
26058
|
|
|
26010
26059
|
export declare const objectHasNestedKeyOperationError: IValueDescriptorTransfer;
|
|
@@ -26041,6 +26090,8 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
|
|
|
26041
26090
|
|
|
26042
26091
|
export declare const objectIsInstanceOfTypeOperationResultVoidDT: IDataTypeTransfer;
|
|
26043
26092
|
|
|
26093
|
+
export declare function objectKeys(obj: unknown): string[];
|
|
26094
|
+
|
|
26044
26095
|
export declare const objectKeysOperation: IActionDescriptorTransfer;
|
|
26045
26096
|
|
|
26046
26097
|
export declare const objectKeysOperationError: IValueDescriptorTransfer;
|
|
@@ -26051,6 +26102,8 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
|
|
|
26051
26102
|
|
|
26052
26103
|
export declare const objectKeysOperationResultDT: IDataTypeTransfer;
|
|
26053
26104
|
|
|
26105
|
+
export declare function objectKeyValueEquals(obj: unknown, key: unknown, expected: unknown): boolean;
|
|
26106
|
+
|
|
26054
26107
|
export declare const objectKeyValueEqualsOperation: IActionDescriptorTransfer;
|
|
26055
26108
|
|
|
26056
26109
|
export declare const objectKeyValueEqualsOperationError: IValueDescriptorTransfer;
|
|
@@ -26185,6 +26238,8 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
|
|
|
26185
26238
|
|
|
26186
26239
|
export declare const objectReadNestedKeyOperationResponseDT: IDataTypeTransfer;
|
|
26187
26240
|
|
|
26241
|
+
export declare function objectValues(obj: unknown): unknown[];
|
|
26242
|
+
|
|
26188
26243
|
export declare const objectValuesOperation: IActionDescriptorTransfer;
|
|
26189
26244
|
|
|
26190
26245
|
export declare const objectValuesOperationError: IValueDescriptorTransfer;
|
|
@@ -29514,6 +29569,10 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
|
|
|
29514
29569
|
|
|
29515
29570
|
export declare const passwordVerifyPBKDF2ResponseDT: IDataTypeTransfer;
|
|
29516
29571
|
|
|
29572
|
+
export declare type PathInput = string | Array<PathSegment>;
|
|
29573
|
+
|
|
29574
|
+
export declare type PathSegment = string | number;
|
|
29575
|
+
|
|
29517
29576
|
export declare interface PBKDF2Options {
|
|
29518
29577
|
iterations: number;
|
|
29519
29578
|
length: number;
|
|
@@ -29731,6 +29790,53 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
|
|
|
29731
29790
|
Untyped = "untyped"
|
|
29732
29791
|
}
|
|
29733
29792
|
|
|
29793
|
+
export declare function printDataType(dataType: DataTypeState | null, options?: {
|
|
29794
|
+
nested?: boolean;
|
|
29795
|
+
omitTopLevelType?: boolean;
|
|
29796
|
+
firstLabel?: 'name' | 'id';
|
|
29797
|
+
omitIdsFor?: EntityType[];
|
|
29798
|
+
omitTypesFor?: EntityType[];
|
|
29799
|
+
metadataIndent?: number;
|
|
29800
|
+
ownMetadataIndent?: number;
|
|
29801
|
+
omitFields?: EntityPrintingFields[];
|
|
29802
|
+
onlyFields?: EntityPrintingFields[];
|
|
29803
|
+
}): {
|
|
29804
|
+
lines: {
|
|
29805
|
+
text: string;
|
|
29806
|
+
indentLevel: number;
|
|
29807
|
+
}[];
|
|
29808
|
+
};
|
|
29809
|
+
|
|
29810
|
+
export declare function printEntity(entity: EntityState, options?: {
|
|
29811
|
+
nested?: boolean;
|
|
29812
|
+
omitTopLevelType?: boolean;
|
|
29813
|
+
firstLabel?: 'name' | 'id';
|
|
29814
|
+
omitIdsFor?: EntityType[];
|
|
29815
|
+
omitTypesFor?: EntityType[];
|
|
29816
|
+
metadataIndent?: number;
|
|
29817
|
+
ownMetadataIndent?: number;
|
|
29818
|
+
omitFields?: EntityPrintingFields[];
|
|
29819
|
+
onlyFields?: EntityPrintingFields[];
|
|
29820
|
+
}): {
|
|
29821
|
+
lines: {
|
|
29822
|
+
text: string;
|
|
29823
|
+
indentLevel: number;
|
|
29824
|
+
}[];
|
|
29825
|
+
};
|
|
29826
|
+
|
|
29827
|
+
export declare function printEntityList(entities: EntityState[], options?: {
|
|
29828
|
+
nested?: boolean;
|
|
29829
|
+
omitTopLevelType?: boolean;
|
|
29830
|
+
firstLabel?: 'name' | 'id';
|
|
29831
|
+
omitIdsFor?: EntityType[];
|
|
29832
|
+
omitTypesFor?: EntityType[];
|
|
29833
|
+
newLinesBetweenItems?: number;
|
|
29834
|
+
omitFields?: EntityPrintingFields[];
|
|
29835
|
+
onlyFields?: EntityPrintingFields[];
|
|
29836
|
+
}): string;
|
|
29837
|
+
|
|
29838
|
+
export declare function printGenerationTarget(entity: ElementGenerationTarget, project: ProjectState): string;
|
|
29839
|
+
|
|
29734
29840
|
export declare type ProjectDomain = string;
|
|
29735
29841
|
|
|
29736
29842
|
export declare type ProjectFetchResult = null | IProjectFetchResult;
|
|
@@ -30507,6 +30613,10 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
|
|
|
30507
30613
|
};
|
|
30508
30614
|
};
|
|
30509
30615
|
|
|
30616
|
+
export declare function readObjectKey(obj: unknown, key: unknown): unknown;
|
|
30617
|
+
|
|
30618
|
+
export declare function readObjectNestedKey(obj: unknown, path: unknown, defaultValue?: unknown): unknown;
|
|
30619
|
+
|
|
30510
30620
|
export declare function readValueFromWritter(entity: ValueReadingEntityState, context: IValueResolutionContext, onlyDefault?: boolean): IDynamicValue | null;
|
|
30511
30621
|
|
|
30512
30622
|
export declare function rebaseStack<T = any>(undoableStackValueIndex: number, history: T[], newItem: T): number;
|
|
@@ -31545,6 +31655,16 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
|
|
|
31545
31655
|
resolveDeterministicResourceId(): string;
|
|
31546
31656
|
}
|
|
31547
31657
|
|
|
31658
|
+
/**
|
|
31659
|
+
* lodash-like set(obj, path, value, options?)
|
|
31660
|
+
* - Mutates `obj` (like lodash), returns it.
|
|
31661
|
+
* - Creates arrays when next segment is numeric, otherwise objects (if createMissing=true).
|
|
31662
|
+
* - Blocks prototype-polluting keys.
|
|
31663
|
+
* - When createMissing=false, throws if any parent on the path is missing.
|
|
31664
|
+
* - When coerce=false, throws if an existing non-container blocks traversal.
|
|
31665
|
+
*/
|
|
31666
|
+
export declare function set<T extends object = any>(obj: T, path: PathInput, value: any, options?: SetOptions): T;
|
|
31667
|
+
|
|
31548
31668
|
export declare function setDate(input: ISODateString, date1to31: number): ISODateString;
|
|
31549
31669
|
|
|
31550
31670
|
export declare const setDateDateArg: IValueDescriptorTransfer;
|
|
@@ -31641,6 +31761,11 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
|
|
|
31641
31761
|
|
|
31642
31762
|
export declare const setMsValueDT: IDataTypeTransfer;
|
|
31643
31763
|
|
|
31764
|
+
declare interface SetOptions {
|
|
31765
|
+
createMissing?: boolean;
|
|
31766
|
+
coerce?: boolean;
|
|
31767
|
+
}
|
|
31768
|
+
|
|
31644
31769
|
export declare function setQuarter(input: ISODateString, q: 1 | 2 | 3 | 4): ISODateString;
|
|
31645
31770
|
|
|
31646
31771
|
export declare const setQuarterDateArg: IValueDescriptorTransfer;
|
|
@@ -35014,4 +35139,17 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
|
|
|
35014
35139
|
|
|
35015
35140
|
declare function whereStatementOperatorToSQL(operator: WhereStatementOperator): 'LIKE' | 'NOT LIKE' | 'IS NOT' | 'BETWEEN' | 'IN' | WhereStatementOperator.BiggerThan | WhereStatementOperator.SmallerThan | WhereStatementOperator.BiggerThanOrEqualTo | WhereStatementOperator.SmallerThanOrEqualTo;
|
|
35016
35141
|
|
|
35142
|
+
export declare function writeObjectKey(obj: unknown, key: unknown, value: unknown): Record<string, unknown>;
|
|
35143
|
+
|
|
35144
|
+
/**
|
|
35145
|
+
* Strict nested write (no auto-create).
|
|
35146
|
+
* Throws if parent chain is missing.
|
|
35147
|
+
*/
|
|
35148
|
+
export declare function writeObjectNestedKey(obj: unknown, path: unknown, value: unknown): Record<string, unknown>;
|
|
35149
|
+
|
|
35150
|
+
/**
|
|
35151
|
+
* Safe nested write (auto-create parents).
|
|
35152
|
+
*/
|
|
35153
|
+
export declare function writeSafeObjectNestedKeyRecursively(obj: unknown, path: unknown, value: unknown): Record<string, unknown>;
|
|
35154
|
+
|
|
35017
35155
|
export { }
|