@elyx-code/project-logic-tree 0.0.6872 → 0.0.6874
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 +212 -212
- package/dist/index.d.ts +55 -7
- package/dist/index.js +32668 -32318
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -9985,6 +9985,7 @@ export declare enum BaseValueDescriptorIds {
|
|
|
9985
9985
|
}
|
|
9986
9986
|
|
|
9987
9987
|
export declare enum CommonStringValidationErrorCodes {
|
|
9988
|
+
ValueMustBeString = "value-must-be-string",
|
|
9988
9989
|
StringValueMustNotHaveSpaces = "string-value-must-not-have-spaces",
|
|
9989
9990
|
StringValueMustNotHaveDashes = "string-value-must-not-have-dashes",
|
|
9990
9991
|
MustBeUniqueAmongSameEntities = "must-be-unique-among-same-entities"
|
|
@@ -10592,6 +10593,32 @@ export declare enum BaseValueDescriptorIds {
|
|
|
10592
10593
|
|
|
10593
10594
|
export declare const cronJobBuiltInBaseEntityRef: IBuiltInBaseEntityReference;
|
|
10594
10595
|
|
|
10596
|
+
export declare class CronJobEntity extends BuiltInBaseEntityState {
|
|
10597
|
+
initialData: IBuiltInBaseEntity | IBuiltInBaseEntityTransfer;
|
|
10598
|
+
readonly id: BaseEntityNames;
|
|
10599
|
+
readonly version: EntityVersion;
|
|
10600
|
+
readonly name: BaseEntityNames;
|
|
10601
|
+
readonly description: string | null;
|
|
10602
|
+
readonly type: EntityType.BuiltInBaseEntity;
|
|
10603
|
+
readonly abstract: boolean;
|
|
10604
|
+
readonly static: boolean;
|
|
10605
|
+
readonly properties: PropertyState[];
|
|
10606
|
+
readonly methods: ActionDescriptorState[];
|
|
10607
|
+
readonly abstractMethods: ActionDescriptorState[];
|
|
10608
|
+
readonly extends: BuiltInBaseEntityState | PrimitiveEntityState | null;
|
|
10609
|
+
errors: EntityError[];
|
|
10610
|
+
project: ProjectState;
|
|
10611
|
+
constructor(parentProjectState: ProjectState);
|
|
10612
|
+
}
|
|
10613
|
+
|
|
10614
|
+
export declare enum CronjobExpressionValidationErrorCodes {
|
|
10615
|
+
InvalidCharacters = "cron-invalid-characters",
|
|
10616
|
+
MustHaveSixFields = "cron-must-have-six-fields",
|
|
10617
|
+
DayOfMonthAndWeekConflict = "cron-day-of-month-and-week-conflict"
|
|
10618
|
+
}
|
|
10619
|
+
|
|
10620
|
+
export declare function cronJobExpressionValueValidation(self: PropertyState, value: LiteralValueType): IValueValidationResult<LiteralValueType, CronjobExpressionValidationErrorCodes | CommonStringValidationErrorCodes>;
|
|
10621
|
+
|
|
10595
10622
|
export declare const cronJobHandlerVoidDataType: IDataTypeTransfer;
|
|
10596
10623
|
|
|
10597
10624
|
export declare const cronJobHandlerVoidDataTypeParentRef: IActionDescriptorReference;
|
|
@@ -20857,12 +20884,12 @@ export declare enum BaseValueDescriptorIds {
|
|
|
20857
20884
|
|
|
20858
20885
|
export declare const httpResponseHeadersReturnRef: IValueDescriptorReference;
|
|
20859
20886
|
|
|
20860
|
-
export declare enum
|
|
20887
|
+
export declare enum HttpStatusCodeValidationErrorCodes {
|
|
20861
20888
|
StatusCodeMustBeNumber = "status-code-must-be-number",
|
|
20862
20889
|
StatusCodeMustBeBetween100And599 = "status-code-must-be-between-100-and-599"
|
|
20863
20890
|
}
|
|
20864
20891
|
|
|
20865
|
-
export declare function httpStatusCodeValueValidation(self: ActionDescriptorState, value: LiteralValueType): IValueValidationResult<LiteralValueType,
|
|
20892
|
+
export declare function httpStatusCodeValueValidation(self: ActionDescriptorState, value: LiteralValueType): IValueValidationResult<LiteralValueType, HttpStatusCodeValidationErrorCodes>;
|
|
20866
20893
|
|
|
20867
20894
|
/** Humanize the difference between two times, e.g., "in 5 minutes" or "2 hours". */
|
|
20868
20895
|
export declare function humanizeDiff(a: ISODateString, b: ISODateString, withSuffix?: boolean): string;
|
|
@@ -31324,6 +31351,24 @@ export declare enum BaseValueDescriptorIds {
|
|
|
31324
31351
|
|
|
31325
31352
|
export declare const relationalDatabaseBuiltInBaseEntityUsernamePropertyRef: IPropertyReference;
|
|
31326
31353
|
|
|
31354
|
+
export declare class RelationalDatabaseEntity extends BuiltInBaseEntityState {
|
|
31355
|
+
initialData: IBuiltInBaseEntity | IBuiltInBaseEntityTransfer;
|
|
31356
|
+
readonly id: BaseEntityNames;
|
|
31357
|
+
readonly version: EntityVersion;
|
|
31358
|
+
readonly name: BaseEntityNames;
|
|
31359
|
+
readonly description: string | null;
|
|
31360
|
+
readonly type: EntityType.BuiltInBaseEntity;
|
|
31361
|
+
readonly abstract: boolean;
|
|
31362
|
+
readonly static: boolean;
|
|
31363
|
+
readonly properties: PropertyState[];
|
|
31364
|
+
readonly methods: ActionDescriptorState[];
|
|
31365
|
+
readonly abstractMethods: ActionDescriptorState[];
|
|
31366
|
+
readonly extends: BuiltInBaseEntityState | PrimitiveEntityState | null;
|
|
31367
|
+
errors: EntityError[];
|
|
31368
|
+
project: ProjectState;
|
|
31369
|
+
constructor(parentProjectState: ProjectState);
|
|
31370
|
+
}
|
|
31371
|
+
|
|
31327
31372
|
export declare class RelationalDatabaseInfrastructureResource extends InfrastructureResource implements IRelationalDatabaseInfrastructureResource {
|
|
31328
31373
|
resourceType: InfrastructureResourceType.RelationalDatabase;
|
|
31329
31374
|
owners: Map<EntityId, DefinitionEntityState>;
|
|
@@ -33991,13 +34036,13 @@ export declare enum BaseValueDescriptorIds {
|
|
|
33991
34036
|
|
|
33992
34037
|
export declare function transitionProjectVersion(from: ChangeSet | 'initial', to: ChangeSet | 'initial', project: ProjectState): IProjectVersionTransitionConfig;
|
|
33993
34038
|
|
|
33994
|
-
export declare function translateLogicErrorCode(error: EntityError<SharedEntityErrorCode | EntityInstanceErrorCode |
|
|
34039
|
+
export declare function translateLogicErrorCode(error: EntityError<SharedEntityErrorCode | EntityInstanceErrorCode | HttpStatusCodeValidationErrorCodes | CronjobExpressionValidationErrorCodes | UUIDV4ValidationErrorCodes | CommonStringValidationErrorCodes>): string;
|
|
33995
34040
|
|
|
33996
|
-
export declare function translateLogicErrorCodeShort(error: EntityError<SharedEntityErrorCode | EntityInstanceErrorCode |
|
|
34041
|
+
export declare function translateLogicErrorCodeShort(error: EntityError<SharedEntityErrorCode | EntityInstanceErrorCode | HttpStatusCodeValidationErrorCodes | UUIDV4ValidationErrorCodes | CommonStringValidationErrorCodes>): string;
|
|
33997
34042
|
|
|
33998
|
-
export declare function translateLogicErrorCodeShortWithEntityName(error: EntityError<SharedEntityErrorCode | EntityInstanceErrorCode |
|
|
34043
|
+
export declare function translateLogicErrorCodeShortWithEntityName(error: EntityError<SharedEntityErrorCode | EntityInstanceErrorCode | HttpStatusCodeValidationErrorCodes | UUIDV4ValidationErrorCodes | CommonStringValidationErrorCodes>): string;
|
|
33999
34044
|
|
|
34000
|
-
export declare function translateLogicErrorCodeWithEntityName(error: EntityError<SharedEntityErrorCode | EntityInstanceErrorCode |
|
|
34045
|
+
export declare function translateLogicErrorCodeWithEntityName(error: EntityError<SharedEntityErrorCode | EntityInstanceErrorCode | HttpStatusCodeValidationErrorCodes | UUIDV4ValidationErrorCodes | CommonStringValidationErrorCodes>): string;
|
|
34001
34046
|
|
|
34002
34047
|
export declare function traverseChangeSet(changeSet: ChangeSet, onAdded: (entity: UserManagedEntityState) => void, onUpdated: (entity: UserManagedEntityState) => void, onRemoved: (entity: UserManagedEntityState) => void, onAffected: (entity: UserManagedEntityState) => void): void;
|
|
34003
34048
|
|
|
@@ -34633,6 +34678,8 @@ export declare enum BaseValueDescriptorIds {
|
|
|
34633
34678
|
|
|
34634
34679
|
export declare function validateVariableInternalCallUse(self: VariableState): EntityError[];
|
|
34635
34680
|
|
|
34681
|
+
export declare function validateWithCodeNativeValueValidation(self: ArgumentDeclarationState | InputMapState | ReturnStatementState | BreakStatementState | ContinueStatementState | PropertyState | ValueDescriptorState): EntityError[];
|
|
34682
|
+
|
|
34636
34683
|
export declare const VALUE_READING_ENTITIES_EXPLANATION: string;
|
|
34637
34684
|
|
|
34638
34685
|
export declare const VALUE_READING_TYPES: EntityType[];
|
|
@@ -35098,7 +35145,7 @@ export declare enum BaseValueDescriptorIds {
|
|
|
35098
35145
|
activeVersion: boolean;
|
|
35099
35146
|
initialized: boolean;
|
|
35100
35147
|
startedInitialization: boolean;
|
|
35101
|
-
readonly
|
|
35148
|
+
readonly _codeNativeValueValidation: ValueValidationCallback | null;
|
|
35102
35149
|
constructor(initialData: IValueDescriptor | IValueDescriptorTransfer, parentProjectState: ProjectState);
|
|
35103
35150
|
static repository: IEditableEntityPersistanceRepository;
|
|
35104
35151
|
static type: EntityType.ValueDescriptor;
|
|
@@ -35127,6 +35174,7 @@ export declare enum BaseValueDescriptorIds {
|
|
|
35127
35174
|
}[];
|
|
35128
35175
|
modifiedData: IValueDescriptorGenerationTarget;
|
|
35129
35176
|
};
|
|
35177
|
+
get codeNativeValueValidation(): ValueValidationCallback | null;
|
|
35130
35178
|
validateGeneratedUpdate(data: Partial<IValueDescriptorGenerationTarget>): {
|
|
35131
35179
|
errors: EntityGenerationError[];
|
|
35132
35180
|
explanations: {
|