@elyx-code/project-logic-tree 0.0.6351 → 0.0.6353
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 +30 -18
- package/dist/index.js +19476 -19065
- package/dist/index.umd.cjs +185 -185
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ import { PostgresqlOperatorExpr } from 'sql-parser-cst';
|
|
|
20
20
|
import { Program } from 'sql-parser-cst';
|
|
21
21
|
import { ProjectPublicationEventName } from '@elyx-code/definitions';
|
|
22
22
|
import { PublicationStatus } from '@elyx-code/definitions';
|
|
23
|
+
import { PublicationStepStatus } from '@elyx-code/definitions';
|
|
23
24
|
import { PublishingSequenceStep } from '@elyx-code/definitions';
|
|
24
25
|
import { SafeParseReturnType } from 'zod';
|
|
25
26
|
import { SelectClause } from 'sql-parser-cst';
|
|
@@ -3216,7 +3217,7 @@ export declare enum ExecutionTerminationType {
|
|
|
3216
3217
|
Return = "return"
|
|
3217
3218
|
}
|
|
3218
3219
|
|
|
3219
|
-
declare class ExplicitInfrastructureResource extends InfrastructureResource {
|
|
3220
|
+
export declare class ExplicitInfrastructureResource extends InfrastructureResource {
|
|
3220
3221
|
resourceType: InfrastructureResourceType.HttpApi | InfrastructureResourceType.RelationalDatabase;
|
|
3221
3222
|
owners: Map<EntityId, DefinitionEntityState>;
|
|
3222
3223
|
details: InfrastructureResourceDetails | null;
|
|
@@ -3417,6 +3418,8 @@ declare function fromNameToTableDescription(tableName: string, project: ProjectS
|
|
|
3417
3418
|
|
|
3418
3419
|
declare function fromOrderByClauseToSortStatements(orderByClause: OrderByClause, _selectStatement: SelectStmt, _allColumns: IColumnMapping[], state: SearchStatementState): SortStatement[];
|
|
3419
3420
|
|
|
3421
|
+
export declare function fromPublishingDisabledCodeToReadable(code: PUBLISHING_DISABLED_REASONS): string;
|
|
3422
|
+
|
|
3420
3423
|
declare function fromSelectClauseColumnsToColumnMappings(selectClause: SelectClause, objectName?: string): IShallowColumnMapping[];
|
|
3421
3424
|
|
|
3422
3425
|
declare function fromSelectClauseToLiteralValueSelections(selectClause: SelectClause, state: SearchStatementState, _debug?: boolean): ColumnRef[];
|
|
@@ -6478,6 +6481,8 @@ export declare function getEventEntityTypeSchema(): z_2.ZodUnion<[z_2.ZodObject<
|
|
|
6478
6481
|
type: import("../../..").EntityType.GlobalEvent;
|
|
6479
6482
|
}>, z_2.ZodRecord<z_2.ZodString, z_2.ZodAny>]>;
|
|
6480
6483
|
|
|
6484
|
+
export declare function getEventNameFromDefinition(event: ProjectPublicationEventName): string;
|
|
6485
|
+
|
|
6481
6486
|
export declare function getExecutableEntityReferenceSchema(): z_2.ZodUnion<[z_2.ZodUnion<[z_2.ZodUnion<[z_2.ZodObject<{
|
|
6482
6487
|
id: z_2.ZodString;
|
|
6483
6488
|
type: z_2.ZodLiteral<import("../../..").EntityType.GenericReference>;
|
|
@@ -6772,6 +6777,8 @@ export declare function getHeadIfPartOfDetachedBranch(entity: CanvasEntityState,
|
|
|
6772
6777
|
|
|
6773
6778
|
export declare function getHighestScope(scopeOwnerA: EntityWithLogicScopeState, scopeOwnerB: EntityWithLogicScopeState, project: ProjectState): EntityWithLogicScopeState | null;
|
|
6774
6779
|
|
|
6780
|
+
export declare function getHTTPAPINameFromProjectId(projectId: string): string;
|
|
6781
|
+
|
|
6775
6782
|
export declare function getImplementedBuiltInEntity(entity: DefinitionEntityState): BuiltInBaseEntityState | null;
|
|
6776
6783
|
|
|
6777
6784
|
export declare function getIsInteractive(entity: DefinitionEntityState | BuiltInBaseEntityState | PrimitiveEntityState): boolean;
|
|
@@ -7298,6 +7305,8 @@ export declare function getRelatedCanvasElementsOnTheLeftFromTransfer(entity: Dr
|
|
|
7298
7305
|
|
|
7299
7306
|
export declare function getRelatedCanvasElementsOnTheRight(entity: CanvasEntityState | ProjectState | InternalCallState, respectCollapse?: boolean): CanvasEntityState[];
|
|
7300
7307
|
|
|
7308
|
+
export declare function getRelationalDBInstanceNameFromEntityId(entityId: string): string;
|
|
7309
|
+
|
|
7301
7310
|
export declare function getRootEntryPointScopeOwner(entity: EntityState | Element_2 | ElementTransfer | ElementGenerationTarget | ElementShallowTransfer, project: ProjectState): EntityWithLogicScopeState | null;
|
|
7302
7311
|
|
|
7303
7312
|
export declare function getScopeOwner(entity: EntityState | Element_2 | ElementTransfer | ElementGenerationTarget | ElementShallowTransfer, project: ProjectState, _initialEntity?: EntityState | Element_2 | ElementTransfer | ElementGenerationTarget | ElementShallowTransfer | null): EntityWithLogicScopeState | ProjectState | null;
|
|
@@ -7317,6 +7326,8 @@ declare function getSelectStatementFromProgram(program: Program): SelectStmt | n
|
|
|
7317
7326
|
|
|
7318
7327
|
export declare function getStateClassFromType(entityType: EntityType): EntityStateConstructor | null;
|
|
7319
7328
|
|
|
7329
|
+
export declare function getStepNameFromDefinition(stepType: PublishingSequenceStep): string;
|
|
7330
|
+
|
|
7320
7331
|
export declare function getTerminationReferenceSchema(): z_2.ZodUnion<[z_2.ZodObject<{
|
|
7321
7332
|
id: z_2.ZodString;
|
|
7322
7333
|
type: z_2.ZodLiteral<import("../../..").EntityType.GenericReference>;
|
|
@@ -9331,7 +9342,7 @@ export declare interface IModuleInjection {
|
|
|
9331
9342
|
|
|
9332
9343
|
export declare function implement(self: DefinitionEntityState | BuiltInBaseEntityState, newEntityName: string, changeSet: ChangeSet | null, newId?: string): DefinitionEntityState;
|
|
9333
9344
|
|
|
9334
|
-
declare class ImplicitGlobalInfrastructureResource extends InfrastructureResource {
|
|
9345
|
+
export declare class ImplicitGlobalInfrastructureResource extends InfrastructureResource {
|
|
9335
9346
|
resourceType: InfrastructureResourceType.CompiledLocalCodebase | InfrastructureResourceType.CloudHostedCodebase;
|
|
9336
9347
|
details: InfrastructureResourceDetails | null;
|
|
9337
9348
|
status: InfrastructureResourceStatus;
|
|
@@ -9359,7 +9370,7 @@ export declare function inferVariableDeclarationDataType(entity: VariableDeclara
|
|
|
9359
9370
|
|
|
9360
9371
|
export declare function inferVariableInstanceDataType(entity: VariableInstanceState, changeSet?: ChangeSet | null): DataTypeState | null;
|
|
9361
9372
|
|
|
9362
|
-
declare class InfrastructureResource implements IInfrastructureResource {
|
|
9373
|
+
export declare class InfrastructureResource implements IInfrastructureResource {
|
|
9363
9374
|
provisionedBy: PublicationStep;
|
|
9364
9375
|
publicationRun: PublicationRun;
|
|
9365
9376
|
resourceType: InfrastructureResourceType;
|
|
@@ -9373,7 +9384,7 @@ declare class InfrastructureResource implements IInfrastructureResource {
|
|
|
9373
9384
|
setProvisionedBy(step: PublicationStep): void;
|
|
9374
9385
|
}
|
|
9375
9386
|
|
|
9376
|
-
declare enum InfrastructureResourceStatus {
|
|
9387
|
+
export declare enum InfrastructureResourceStatus {
|
|
9377
9388
|
Ready = "ready",
|
|
9378
9389
|
Provisioning = "provisioning",
|
|
9379
9390
|
Queued = "queued",
|
|
@@ -12598,7 +12609,7 @@ declare namespace propertyValidation {
|
|
|
12598
12609
|
}
|
|
12599
12610
|
export { propertyValidation }
|
|
12600
12611
|
|
|
12601
|
-
declare class PublicationRun implements IPublication {
|
|
12612
|
+
export declare class PublicationRun implements IPublication {
|
|
12602
12613
|
id: string;
|
|
12603
12614
|
projectAutoIncrementPublicationCount: number;
|
|
12604
12615
|
projectPublishedSemanticVersion: string;
|
|
@@ -12625,20 +12636,10 @@ declare class PublicationRun implements IPublication {
|
|
|
12625
12636
|
initResources(): Promise<void>;
|
|
12626
12637
|
setSteps(steps: IDeploymentStepDefinition[], emittedAt: string): void;
|
|
12627
12638
|
addStep(step: IDeploymentStepDefinition, emittedAt: string): void;
|
|
12628
|
-
/**
|
|
12629
|
-
* Reorder this.steps so that:
|
|
12630
|
-
* - each step appears after all of its dependencies,
|
|
12631
|
-
* - unrelated steps keep their relative order (by old index),
|
|
12632
|
-
* - and indexes are reassigned consecutively (0,1,2…).
|
|
12633
|
-
*
|
|
12634
|
-
* Throws if there is a cycle in the dependency graph.
|
|
12635
|
-
*/
|
|
12636
|
-
orderSteps(): void;
|
|
12637
|
-
getNextParallelizableSteps(): PublicationStep[];
|
|
12638
12639
|
onUpdate(message: ILiveMessageDTO): void;
|
|
12639
12640
|
}
|
|
12640
12641
|
|
|
12641
|
-
declare class PublicationStep implements IDeploymentStepDefinition<InfrastructureResource> {
|
|
12642
|
+
export declare class PublicationStep implements IDeploymentStepDefinition<InfrastructureResource> {
|
|
12642
12643
|
stepType: PublishingSequenceStep;
|
|
12643
12644
|
id: string;
|
|
12644
12645
|
resourceType: InfrastructureResourceType;
|
|
@@ -12646,14 +12647,21 @@ declare class PublicationStep implements IDeploymentStepDefinition<Infrastructur
|
|
|
12646
12647
|
dependency: string[];
|
|
12647
12648
|
lastEvent: ProjectPublicationEventName | null;
|
|
12648
12649
|
lasEventTimestamp: string | null;
|
|
12649
|
-
status:
|
|
12650
|
+
status: PublicationStepStatus;
|
|
12650
12651
|
publicationRun: PublicationRun;
|
|
12651
12652
|
resource: ExplicitInfrastructureResource | ImplicitGlobalInfrastructureResource;
|
|
12652
|
-
constructor(stepType: PublishingSequenceStep, id: string, resourceType: InfrastructureResourceType, initialStatus:
|
|
12653
|
+
constructor(stepType: PublishingSequenceStep, id: string, resourceType: InfrastructureResourceType, initialStatus: PublicationStepStatus, dependency: string[], index: number, lasEventTimestamp: string, publicationRun: PublicationRun, resource: ExplicitInfrastructureResource | ImplicitGlobalInfrastructureResource);
|
|
12653
12654
|
toJSON(): IDeploymentStepDefinition;
|
|
12654
12655
|
update(step: IDeploymentStepDefinition): Promise<void>;
|
|
12655
12656
|
}
|
|
12656
12657
|
|
|
12658
|
+
export declare enum PUBLISHING_DISABLED_REASONS {
|
|
12659
|
+
NO_LOGIC = "NO_LOGIC",
|
|
12660
|
+
NO_NAME = "NO_NAME",
|
|
12661
|
+
NO_CHANGES = "NO_CHANGES",
|
|
12662
|
+
PROJECT_PUBLICATION_ALREADY_ONGOING = "PROJECT_PUBLICATION_ALREADY_ONGOING"
|
|
12663
|
+
}
|
|
12664
|
+
|
|
12657
12665
|
export declare const READ_ONLY_ENTITY_PERSISTANCE_REPOSITORY: IReadOnlyEntityPersistanceRepository;
|
|
12658
12666
|
|
|
12659
12667
|
export declare const READABLE_ENTITY_TYPES: {
|
|
@@ -12955,6 +12963,10 @@ export declare function resolvePrimitiveEntityName(primitiveEntity: {
|
|
|
12955
12963
|
|
|
12956
12964
|
export declare function resolvePropertyValue(entity: PropertyState, context: IValueResolutionContext): IDynamicValue | null;
|
|
12957
12965
|
|
|
12966
|
+
export declare function resolvePublicationStepStatusFromType(eventType: PublicationStatus | 'skipped'): string;
|
|
12967
|
+
|
|
12968
|
+
export declare function resolveResourceNameFromType(resourceType: InfrastructureResourceType): string;
|
|
12969
|
+
|
|
12958
12970
|
export declare function resolveReturnDeclarationValue(entity: ReturnDeclarationState, context: IValueResolutionContext): IDynamicValue | null;
|
|
12959
12971
|
|
|
12960
12972
|
export declare function resolveSearchName(search: SearchState): string;
|