@elyx-code/project-logic-tree 0.0.6659 → 0.0.6661

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
@@ -33,6 +33,7 @@ import { IWebsocketsClient } from '@elyx-code/common-ts-utils';
33
33
  import { JoinExpr } from 'sql-parser-cst';
34
34
  import { Keyword } from 'sql-parser-cst';
35
35
  import { LimitClause } from 'sql-parser-cst';
36
+ import { LoggerInstance } from '@elyx-code/common-ts-utils';
36
37
  import { OrderByClause } from 'sql-parser-cst';
37
38
  import { PivotExpr } from 'sql-parser-cst';
38
39
  import { PostgresqlOperatorExpr } from 'sql-parser-cst';
@@ -9470,6 +9471,7 @@ export declare class ChangeSet extends Events {
9470
9471
  events: Map<string, ChangeSetEvent>;
9471
9472
  ignoreNonEditable: boolean;
9472
9473
  ignoreNonDeletable: boolean;
9474
+ logger: LoggerInstance;
9473
9475
  constructor(project: ProjectState, author: string, timestamp: string, // ISO 8601 format
9474
9476
  self: UserManagedEntityState | null, autoclose?: boolean, autoCloseActionName?: string);
9475
9477
  get index(): number | null;
package/dist/index.js CHANGED
@@ -94792,7 +94792,9 @@ class Cgi {
94792
94792
  }
94793
94793
  class q extends Bf {
94794
94794
  constructor(i, n, l, c, e = !1, y = "") {
94795
- super(y ? y + "-cs-events" : "anonymous-cs-events");
94795
+ super(
94796
+ y ? y + "-cs-events" : "anonymous-cs-events"
94797
+ );
94796
94798
  I(this, "id", x.UUID.uuid());
94797
94799
  // In order of traversal dependency
94798
94800
  I(this, "seenEntities", []);
@@ -94837,7 +94839,10 @@ class q extends Bf {
94837
94839
  I(this, "events", /* @__PURE__ */ new Map());
94838
94840
  I(this, "ignoreNonEditable", !1);
94839
94841
  I(this, "ignoreNonDeletable", !1);
94840
- if (this.project = i, this.author = n || x.sessionAuthor || "", this.timestamp = l, this.self = c, this.autoclose = e, this.autoCloseActionName = y, this.autoclose && !this.autoCloseActionName)
94842
+ I(this, "logger");
94843
+ if (this.project = i, this.author = n || x.sessionAuthor || "", this.timestamp = l, this.self = c, this.autoclose = e, this.autoCloseActionName = y, this.logger = ie.module(
94844
+ "cs:" + (this.autoCloseActionName ? this.autoCloseActionName + ":" : "") + this.id
94845
+ ), this.autoclose && !this.autoCloseActionName)
94841
94846
  throw new Error(
94842
94847
  "Auto-close change-set must have an auto-close action name."
94843
94848
  );
@@ -94886,7 +94891,7 @@ class q extends Bf {
94886
94891
  return Object.keys(this.affected);
94887
94892
  }
94888
94893
  event(i) {
94889
- ie.log(`ChangeSet Event: ${i.action} (${i.id})`);
94894
+ this.logger.log(`ChangeSet Event: ${i.action} (${i.id})`);
94890
94895
  const n = new Cgi(i, this);
94891
94896
  this.events.set(i.id, n), this.emit("change-set-event", n);
94892
94897
  }
@@ -94910,7 +94915,7 @@ class q extends Bf {
94910
94915
  (y) => !c.includes(y)
94911
94916
  ).forEach((y) => {
94912
94917
  const T = this.get(y);
94913
- ie.warn(
94918
+ this.logger.warn(
94914
94919
  `Entity ${T == null ? void 0 : T.type} with id "${y}" present in change-set but not in project. Removing from change-set.`
94915
94920
  ), this.remove(y);
94916
94921
  }), this.added[this.project.id]) {
@@ -94971,13 +94976,13 @@ class q extends Bf {
94971
94976
  ...i
94972
94977
  };
94973
94978
  if (!this.open || this.startedClose)
94974
- return ie.warn(
94979
+ return this.logger.warn(
94975
94980
  `Change-set (${this.id}) is already closed or in the process of closing.`
94976
94981
  ), this;
94977
94982
  const l = i.awaitBeforeClose ?? !0, c = i.awaitExternalPersist ?? !0;
94978
- return this.startedClose || (this.startedClose = !0, l ? await this.beforeCloseAsync() : this.beforeCloseAsync()), !this.isValid && this.self && !this.added[this.self.id] && !this.updated[this.self.id] && this.removed[this.self.id], this.discardOrphans(), this.sanitize(), this.recursiveCaptureUpstreamVersions(), this.lockedVersions || (this.captureAllChangesInVersionInstances(), this.recursiveCaptureUpstreamVersions()), this.open = !1, this.isEmpty ? (ie.warn(
94983
+ return this.startedClose || (this.startedClose = !0, l ? await this.beforeCloseAsync() : this.beforeCloseAsync()), !this.isValid && this.self && !this.added[this.self.id] && !this.updated[this.self.id] && this.removed[this.self.id], this.discardOrphans(), this.sanitize(), this.recursiveCaptureUpstreamVersions(), this.lockedVersions || (this.captureAllChangesInVersionInstances(), this.recursiveCaptureUpstreamVersions()), this.open = !1, this.isEmpty ? (this.logger.warn(
94979
94984
  `[ChangeSet.closeAsync] Empty change-set (${this.id}) discarded upon closing.`
94980
- ), this.dirty = !1, this.project.discardChangeSet(this), ie.log("[ChangeSet.closeAsync] Closing pending change-sets..."), this.project.closePersistChangeSetsSequentially(), this) : (this.project.emit(
94985
+ ), this.dirty = !1, this.project.discardChangeSet(this), this.logger.log("[ChangeSet.closeAsync] Closing pending change-sets..."), this.project.closePersistChangeSetsSequentially(), this) : (this.project.emit(
94981
94986
  Ti.CHANGE_SET_CLOSED_BEFORE_PERSIST,
94982
94987
  this
94983
94988
  ), c ? n.persistType === "parallel" ? await this.project.persistChangeSetInParallel(this) : await this.project.persistChangeSetSequentially(this) : n.persistType === "parallel" ? this.project.persistChangeSetInParallel(this) : this.project.persistChangeSetSequentially(this), this.destroy(), this);
@@ -95068,13 +95073,13 @@ class q extends Bf {
95068
95073
  ...i
95069
95074
  };
95070
95075
  if (!this.open || this.startedClose)
95071
- return ie.warn(
95076
+ return this.logger.warn(
95072
95077
  `Change-set (${this.id}) is already closed or in the process of closing.`
95073
95078
  ), this;
95074
95079
  if (this.startedClose || (this.startedClose = !0, this.beforeClose()), !this.isValid && this.self && !this.added[this.self.id] && !this.updated[this.self.id] && this.removed[this.self.id], this.discardOrphans(), this.sanitize(), this.captureAllChangesInVersionInstances(), this.lockedVersions || (this.recursiveCaptureUpstreamVersions(), this.captureAllChangesInVersionInstances()), this.open = !1, this.isEmpty)
95075
- return ie.warn(
95080
+ return this.logger.warn(
95076
95081
  `[ChangeSet.close] Empty change-set (${this.id}) discarded upon closing.`
95077
- ), this.project.discardChangeSet(this), ie.log("[ChangeSet.close] Closing pending change-sets..."), this.project.closePersistChangeSetsSequentially(), this;
95082
+ ), this.project.discardChangeSet(this), this.logger.log("[ChangeSet.close] Closing pending change-sets..."), this.project.closePersistChangeSetsSequentially(), this;
95078
95083
  if (this.added[this.project.id] && this.updatedIds.length)
95079
95084
  throw new Error(
95080
95085
  "No 'updated' entities should be present in the change-set when the project entity is in the 'added' list. New projects can only have newly added entities"
@@ -133828,7 +133833,7 @@ class Cn {
133828
133833
  }), p(i);
133829
133834
  }
133830
133835
  }
133831
- var rm = /* @__PURE__ */ ((d) => (d.Amazon = "amazon", d.Google = "google", d.Microsoft = "microsoft", d))(rm || {}), pr = /* @__PURE__ */ ((d) => (d.RelationalDatabase = "relational-database", d.CompiledLocalCodebase = "compiled-local-codebase", d.CloudHostedCodebase = "cloud-hosted-codebase", d.HttpApi = "http-api", d.HttpEndpoint = "http-endpoint", d.ServerlessFunction = "serverless-function", d))(pr || {}), TD = /* @__PURE__ */ ((d) => (d.Post = "post", d.Get = "get", d.Acknowledgement = "acknowledgment", d.Progress = "progress", d.Error = "error", d.Complete = "complete", d))(TD || {}), Lp = /* @__PURE__ */ ((d) => (d.Queued = "queued", d.Running = "running", d.Success = "success", d.Failed = "failed", d.CleanedUp = "cleaned-up", d.Skipped = "skipped", d.AbortedByUser = "aborted-by-user", d.UnrecoverableFailure = "unrecoverable-failure", d.Reverted = "reverted", d.UnpublishingStarted = "unpublishing-started", d.Unpublished = "unpublished", d))(Lp || {}), vD = /* @__PURE__ */ ((d) => (d.Queued = "queued", d.Running = "running", d.Success = "success", d.Failed = "failed", d.CleanedUp = "cleaned-up", d.UnrecoverableFailure = "unrecoverable-failure", d.Reverted = "reverted", d.UnpublishingStarted = "unpublishing-started", d.Unpublished = "unpublished", d))(vD || {}), Nt = /* @__PURE__ */ ((d) => (d.ProjectNotFound = "project-not-found", d.ProjectPublishRequestAcknowledged = "project-publish-request-acknowledged", d.PublicationStepFailedReasonUnknown = "publication-step-failed-reason-unknown", d.DeploymentCompleted = "deployment-completed", d.DeploymentStarted = "deployment-started", d.DeploymentFailed = "deployment-failed", d.AllInfrastructureSuccessfullyProvisioned = "all-infrastucture-successfully-provisioned", d.RequestPayloadValidationFailed = "request-payload-validation-failed", d.ProjectStateValidationFailedMissingName = "project-state-validation-failed-missing-name", d.ProjectStateValidationFailedMissingAnyFunctionality = "project-state-validation-failed-missing-any-functionality", d.ProjectAlreadyBeingPublished = "project-already-being-published", d.BillingSubscriptionUpdateFailed = "billing-subscription-update-failed", d.RelationalDatabaseDeploymentStarted = "relational-database-deployment-started", d.RelationalDatabaseDeploymentCompleted = "relational-database-deployment-completed", d.RelationalDatabaseDeploymentFailed = "relational-database-deployment-failed", d.CreatingNewRelationalDatabase = "creating-new-relational-database", d.WaitingForPreviousRelationalDatabaseDeployment = "waiting-for-previous-relationa-database-deployment", d.RelationalDatabaseAlreadyExists = "relational-database-already-exists", d.RelationalDatabaseDeletionStarted = "relational-database-deletion-started", d.RelationalDatabaseDeletionCompleted = "relational-database-deletion-completed", d.RelationalDatabaseDeletionFailed = "relational-database-deletion-failed", d.WaitingForPreviousRelationalDatabaseDeletion = "waiting-for-previous-relationa-database-deletion", d.HttpApiDeploymentStarted = "http-api-deployment-started", d.HttpApiDeploymentCompleted = "http-api-deployment-completed", d.HttpApiDeploymentFailed = "http-api-deployment-failed", d.CreatingNewHttpApi = "creating-new-http-api", d.HttpApiAlreadyExists = "http-api-already-exists", d.HttpApiDeletionStarted = "http-api-deletion-started", d.HttpApiDeletionCompleted = "http-api-deletion-completed", d.HttpApiDeletionFailed = "http-api-deletion-failed", d.WaitingForPreviousHttpApiDeletion = "waiting-for-previous-http-api-deletion", d.BusinessLogicCodebaseDeploymentStarted = "business-logic-codebase-deployment-started", d.BusinessLogicCodebaseDeploymentCompleted = "business-logic-codebase-deployment-completed", d.BusinessLogicCodebaseDeploymentFailed = "business-logic-codebase-deployment-failed", d.BundlingCodebaseForDownload = "bundling-codebase-for-download", d.UploadingCodebaseToCloudStorage = "uploading-codebase-to-cloud-storage", d.UploadingCodebaseToCloudStorageCompleted = "uploading-codebase-to-cloud-storage-completed", d.UploadingCodebaseToCloudStorageFailed = "uploading-codebase-to-cloud-storage-failed", d.InfrastructureValuesCodebaseInterpolationStarted = "infrastructure-values-codebase-interpolation-started", d.InfrastructureValuesCodebaseInterpolationCompleted = "infrastructure-values-codebase-interpolation-completed", d.InfrastructureValuesCodebaseInterpolationFailed = "infrastructure-values-codebase-interpolation-failed", d.CodeCompilationStarted = "code-compilation-started", d.CodeCompilationCompleted = "code-compilation-completed", d.CodeCompilationFailed = "code-compilation-failed", d.BundleCodebaseStarted = "bundle-codebase-started", d.BundleCodebaseCompleted = "bundle-codebase-completed", d.BundleCodebaseFailed = "bundle-codebase-failed", d.InstallingCodebaseDependenciesStarted = "installing-codebase-dependencies-started", d.InstallingCodebaseDependenciesCompleted = "installing-codebase-dependencies-completed", d.InstallingCodebaseDependenciesFailed = "installing-codebase-dependencies-failed", d.MigrateRelationalDatabaseStarted = "migrate-relational-database-started", d.MigrateRelationalDatabaseCompleted = "migrate-relational-database-completed", d.MigrateRelationalDatabaseFailed = "migrate-relational-database-failed", d.ExecutePublicationCompletedEventStarted = "execute-publication-completed-event-started", d.ExecutePublicationCompletedEventCompleted = "execute-publication-completed-event-completed", d.ExecutePublicationCompletedEventFailed = "execute-publication-completed-event-failed", d.ExecutePublicationCompletedEventTimedOut = "execute-publication-completed-event-timed-out", d))(Nt || {}), dl = /* @__PURE__ */ ((d) => (d.CodeCompilation = "code-compilation", d.RelationalDatabaseDeployment = "relational-database-deployment", d.RelationalDatabaseDeletion = "relational-database-deletion", d.HttpApiDeployment = "http-api-deployment", d.HttpApiDeletion = "http-api-deletion", d.InfrastructureValuesCodebaseInterpolation = "infrastructure-values-codebase-interpolation", d.BundleCodebase = "bundle-codebase", d.MigrateRelationalDatabase = "migrate-relational-database", d.BusinessLogicCodebaseDeployment = "business-logic-codebase-deployment", d.ExecutePublicationCompletedEvent = "execute-publication-completed-event", d.CodebaseCleanup = "codebase-cleanup", d))(dl || {});
133836
+ var rm = /* @__PURE__ */ ((d) => (d.Amazon = "amazon", d.Google = "google", d.Microsoft = "microsoft", d))(rm || {}), pr = /* @__PURE__ */ ((d) => (d.RelationalDatabase = "relational-database", d.CompiledLocalCodebase = "compiled-local-codebase", d.CloudHostedCodebase = "cloud-hosted-codebase", d.HttpApi = "http-api", d.HttpEndpoint = "http-endpoint", d.ServerlessFunction = "serverless-function", d))(pr || {}), TD = /* @__PURE__ */ ((d) => (d.Post = "post", d.Get = "get", d.Acknowledgement = "acknowledgment", d.Progress = "progress", d.Error = "error", d.Complete = "complete", d))(TD || {}), Lp = /* @__PURE__ */ ((d) => (d.Queued = "queued", d.Running = "running", d.Success = "success", d.Failed = "failed", d.CleanedUp = "cleaned-up", d.Skipped = "skipped", d.AbortedByUser = "aborted-by-user", d.UnrecoverableFailure = "unrecoverable-failure", d.Reverted = "reverted", d.UnpublishingStarted = "unpublishing-started", d.Unpublished = "unpublished", d))(Lp || {}), vD = /* @__PURE__ */ ((d) => (d.Queued = "queued", d.Running = "running", d.Success = "success", d.Failed = "failed", d.CleanedUp = "cleaned-up", d.UnrecoverableFailure = "unrecoverable-failure", d.Reverted = "reverted", d.UnpublishingStarted = "unpublishing-started", d.Unpublished = "unpublished", d))(vD || {}), Vt = /* @__PURE__ */ ((d) => (d.ProjectNotFound = "project-not-found", d.ProjectPublishRequestAcknowledged = "project-publish-request-acknowledged", d.PublicationStepFailedReasonUnknown = "publication-step-failed-reason-unknown", d.DeploymentCompleted = "deployment-completed", d.DeploymentStarted = "deployment-started", d.DeploymentFailed = "deployment-failed", d.AllInfrastructureSuccessfullyProvisioned = "all-infrastucture-successfully-provisioned", d.RequestPayloadValidationFailed = "request-payload-validation-failed", d.ProjectStateValidationFailedMissingName = "project-state-validation-failed-missing-name", d.ProjectStateValidationFailedMissingAnyFunctionality = "project-state-validation-failed-missing-any-functionality", d.ProjectAlreadyBeingPublished = "project-already-being-published", d.BillingSubscriptionUpdateFailed = "billing-subscription-update-failed", d.RelationalDatabaseDeploymentStarted = "relational-database-deployment-started", d.RelationalDatabaseDeploymentCompleted = "relational-database-deployment-completed", d.RelationalDatabaseDeploymentFailed = "relational-database-deployment-failed", d.CreatingNewRelationalDatabase = "creating-new-relational-database", d.WaitingForPreviousRelationalDatabaseDeployment = "waiting-for-previous-relationa-database-deployment", d.RelationalDatabaseAlreadyExists = "relational-database-already-exists", d.RelationalDatabaseDeletionStarted = "relational-database-deletion-started", d.RelationalDatabaseDeletionCompleted = "relational-database-deletion-completed", d.RelationalDatabaseDeletionFailed = "relational-database-deletion-failed", d.WaitingForPreviousRelationalDatabaseDeletion = "waiting-for-previous-relationa-database-deletion", d.HttpApiDeploymentStarted = "http-api-deployment-started", d.HttpApiDeploymentCompleted = "http-api-deployment-completed", d.HttpApiDeploymentFailed = "http-api-deployment-failed", d.CreatingNewHttpApi = "creating-new-http-api", d.HttpApiAlreadyExists = "http-api-already-exists", d.HttpApiDeletionStarted = "http-api-deletion-started", d.HttpApiDeletionCompleted = "http-api-deletion-completed", d.HttpApiDeletionFailed = "http-api-deletion-failed", d.WaitingForPreviousHttpApiDeletion = "waiting-for-previous-http-api-deletion", d.BusinessLogicCodebaseDeploymentStarted = "business-logic-codebase-deployment-started", d.BusinessLogicCodebaseDeploymentCompleted = "business-logic-codebase-deployment-completed", d.BusinessLogicCodebaseDeploymentFailed = "business-logic-codebase-deployment-failed", d.BundlingCodebaseForDownload = "bundling-codebase-for-download", d.UploadingCodebaseToCloudStorage = "uploading-codebase-to-cloud-storage", d.UploadingCodebaseToCloudStorageCompleted = "uploading-codebase-to-cloud-storage-completed", d.UploadingCodebaseToCloudStorageFailed = "uploading-codebase-to-cloud-storage-failed", d.InfrastructureValuesCodebaseInterpolationStarted = "infrastructure-values-codebase-interpolation-started", d.InfrastructureValuesCodebaseInterpolationCompleted = "infrastructure-values-codebase-interpolation-completed", d.InfrastructureValuesCodebaseInterpolationFailed = "infrastructure-values-codebase-interpolation-failed", d.CodeCompilationStarted = "code-compilation-started", d.CodeCompilationCompleted = "code-compilation-completed", d.CodeCompilationFailed = "code-compilation-failed", d.BundleCodebaseStarted = "bundle-codebase-started", d.BundleCodebaseCompleted = "bundle-codebase-completed", d.BundleCodebaseFailed = "bundle-codebase-failed", d.InstallingCodebaseDependenciesStarted = "installing-codebase-dependencies-started", d.InstallingCodebaseDependenciesCompleted = "installing-codebase-dependencies-completed", d.InstallingCodebaseDependenciesFailed = "installing-codebase-dependencies-failed", d.MigrateRelationalDatabaseStarted = "migrate-relational-database-started", d.MigrateRelationalDatabaseCompleted = "migrate-relational-database-completed", d.MigrateRelationalDatabaseFailed = "migrate-relational-database-failed", d.ExecutePublicationCompletedEventStarted = "execute-publication-completed-event-started", d.ExecutePublicationCompletedEventCompleted = "execute-publication-completed-event-completed", d.ExecutePublicationCompletedEventFailed = "execute-publication-completed-event-failed", d.ExecutePublicationCompletedEventTimedOut = "execute-publication-completed-event-timed-out", d))(Vt || {}), dl = /* @__PURE__ */ ((d) => (d.CodeCompilation = "code-compilation", d.RelationalDatabaseDeployment = "relational-database-deployment", d.RelationalDatabaseDeletion = "relational-database-deletion", d.HttpApiDeployment = "http-api-deployment", d.HttpApiDeletion = "http-api-deletion", d.InfrastructureValuesCodebaseInterpolation = "infrastructure-values-codebase-interpolation", d.BundleCodebase = "bundle-codebase", d.MigrateRelationalDatabase = "migrate-relational-database", d.BusinessLogicCodebaseDeployment = "business-logic-codebase-deployment", d.ExecutePublicationCompletedEvent = "execute-publication-completed-event", d.CodebaseCleanup = "codebase-cleanup", d))(dl || {});
133832
133837
  pr.CloudHostedCodebase, pr.HttpApi, pr.RelationalDatabase, pr.CloudHostedCodebase, pr.CloudHostedCodebase, pr.RelationalDatabase, pr.CloudHostedCodebase, pr.CloudHostedCodebase;
133833
133838
  function UPi(d) {
133834
133839
  return `project-${d}-http-api`;
@@ -134174,7 +134179,7 @@ class vBi {
134174
134179
  p.forEach((n) => {
134175
134180
  this.addStep(n, i);
134176
134181
  }), this.editor.events.emit(
134177
- Nt.ProjectPublishRequestAcknowledged,
134182
+ Vt.ProjectPublishRequestAcknowledged,
134178
134183
  {}
134179
134184
  );
134180
134185
  }
@@ -134258,111 +134263,111 @@ function bBi(d) {
134258
134263
  }
134259
134264
  function EBi(d) {
134260
134265
  switch (d) {
134261
- case Nt.DeploymentCompleted:
134266
+ case Vt.DeploymentCompleted:
134262
134267
  return "Successfully published";
134263
- case Nt.DeploymentStarted:
134268
+ case Vt.DeploymentStarted:
134264
134269
  return "Publication started";
134265
- case Nt.DeploymentFailed:
134270
+ case Vt.DeploymentFailed:
134266
134271
  return "Publication failed";
134267
- case Nt.AllInfrastructureSuccessfullyProvisioned:
134272
+ case Vt.AllInfrastructureSuccessfullyProvisioned:
134268
134273
  return "All infrastructure successfully provisioned";
134269
- case Nt.RequestPayloadValidationFailed:
134274
+ case Vt.RequestPayloadValidationFailed:
134270
134275
  return "Request payload validation failed";
134271
- case Nt.ProjectStateValidationFailedMissingName:
134276
+ case Vt.ProjectStateValidationFailedMissingName:
134272
134277
  return "Project state validation failed: missing name";
134273
- case Nt.ProjectStateValidationFailedMissingAnyFunctionality:
134278
+ case Vt.ProjectStateValidationFailedMissingAnyFunctionality:
134274
134279
  return "Project state validation failed: missing any functionality";
134275
- case Nt.RelationalDatabaseDeploymentStarted:
134280
+ case Vt.RelationalDatabaseDeploymentStarted:
134276
134281
  return "Database creation started";
134277
- case Nt.RelationalDatabaseDeploymentCompleted:
134282
+ case Vt.RelationalDatabaseDeploymentCompleted:
134278
134283
  return "Database creation completed";
134279
- case Nt.RelationalDatabaseDeploymentFailed:
134284
+ case Vt.RelationalDatabaseDeploymentFailed:
134280
134285
  return "Database creation failed";
134281
- case Nt.CreatingNewRelationalDatabase:
134286
+ case Vt.CreatingNewRelationalDatabase:
134282
134287
  return "Creating new database (up to 5 mins)";
134283
- case Nt.WaitingForPreviousRelationalDatabaseDeployment:
134288
+ case Vt.WaitingForPreviousRelationalDatabaseDeployment:
134284
134289
  return "Waiting for previous database creation";
134285
- case Nt.RelationalDatabaseAlreadyExists:
134290
+ case Vt.RelationalDatabaseAlreadyExists:
134286
134291
  return "Database already exists";
134287
- case Nt.HttpApiDeploymentStarted:
134292
+ case Vt.HttpApiDeploymentStarted:
134288
134293
  return "HTTP gateway creation started";
134289
- case Nt.HttpApiDeploymentCompleted:
134294
+ case Vt.HttpApiDeploymentCompleted:
134290
134295
  return "HTTP gateway creation completed";
134291
- case Nt.HttpApiDeploymentFailed:
134296
+ case Vt.HttpApiDeploymentFailed:
134292
134297
  return "HTTP gateway creation failed";
134293
- case Nt.CreatingNewHttpApi:
134298
+ case Vt.CreatingNewHttpApi:
134294
134299
  return "Creating new HTTP gateway";
134295
- case Nt.HttpApiAlreadyExists:
134300
+ case Vt.HttpApiAlreadyExists:
134296
134301
  return "HTTP gateway already exists";
134297
- case Nt.BusinessLogicCodebaseDeploymentStarted:
134302
+ case Vt.BusinessLogicCodebaseDeploymentStarted:
134298
134303
  return "Update servers with new code started";
134299
- case Nt.BusinessLogicCodebaseDeploymentCompleted:
134304
+ case Vt.BusinessLogicCodebaseDeploymentCompleted:
134300
134305
  return "Update servers with new code completed";
134301
- case Nt.BusinessLogicCodebaseDeploymentFailed:
134306
+ case Vt.BusinessLogicCodebaseDeploymentFailed:
134302
134307
  return "Update servers with new code failed";
134303
- case Nt.BundlingCodebaseForDownload:
134308
+ case Vt.BundlingCodebaseForDownload:
134304
134309
  return "Bundling code for download";
134305
- case Nt.UploadingCodebaseToCloudStorage:
134310
+ case Vt.UploadingCodebaseToCloudStorage:
134306
134311
  return "Uploading code to cloud storage";
134307
- case Nt.InfrastructureValuesCodebaseInterpolationStarted:
134312
+ case Vt.InfrastructureValuesCodebaseInterpolationStarted:
134308
134313
  return "Linking code with resources started";
134309
- case Nt.InfrastructureValuesCodebaseInterpolationCompleted:
134314
+ case Vt.InfrastructureValuesCodebaseInterpolationCompleted:
134310
134315
  return "Linking code with resources completed";
134311
- case Nt.InfrastructureValuesCodebaseInterpolationFailed:
134316
+ case Vt.InfrastructureValuesCodebaseInterpolationFailed:
134312
134317
  return "Linking code with resources failed";
134313
- case Nt.CodeCompilationStarted:
134318
+ case Vt.CodeCompilationStarted:
134314
134319
  return "Code generation started";
134315
- case Nt.CodeCompilationCompleted:
134320
+ case Vt.CodeCompilationCompleted:
134316
134321
  return "Code generation completed";
134317
- case Nt.CodeCompilationFailed:
134322
+ case Vt.CodeCompilationFailed:
134318
134323
  return "Code generation failed";
134319
- case Nt.BundleCodebaseStarted:
134324
+ case Vt.BundleCodebaseStarted:
134320
134325
  return "Code bundling started";
134321
- case Nt.BundleCodebaseCompleted:
134326
+ case Vt.BundleCodebaseCompleted:
134322
134327
  return "Code bundling completed";
134323
- case Nt.BundleCodebaseFailed:
134328
+ case Vt.BundleCodebaseFailed:
134324
134329
  return "Code bundling failed";
134325
- case Nt.InstallingCodebaseDependenciesStarted:
134330
+ case Vt.InstallingCodebaseDependenciesStarted:
134326
134331
  return "Installing code dependencies";
134327
- case Nt.InstallingCodebaseDependenciesCompleted:
134332
+ case Vt.InstallingCodebaseDependenciesCompleted:
134328
134333
  return "Installing code dependencies completed";
134329
- case Nt.InstallingCodebaseDependenciesFailed:
134334
+ case Vt.InstallingCodebaseDependenciesFailed:
134330
134335
  return "Installing code dependencies failed";
134331
- case Nt.MigrateRelationalDatabaseStarted:
134336
+ case Vt.MigrateRelationalDatabaseStarted:
134332
134337
  return "Database structure migration started";
134333
- case Nt.MigrateRelationalDatabaseCompleted:
134338
+ case Vt.MigrateRelationalDatabaseCompleted:
134334
134339
  return "Database structure migration completed";
134335
- case Nt.MigrateRelationalDatabaseFailed:
134340
+ case Vt.MigrateRelationalDatabaseFailed:
134336
134341
  return "Database structure migration failed";
134337
- case Nt.ProjectAlreadyBeingPublished:
134342
+ case Vt.ProjectAlreadyBeingPublished:
134338
134343
  return "Project already being published. You need to wait for the previous publication to complete";
134339
- case Nt.ProjectPublishRequestAcknowledged:
134344
+ case Vt.ProjectPublishRequestAcknowledged:
134340
134345
  return "Project publish request acknowledged";
134341
- case Nt.UploadingCodebaseToCloudStorageCompleted:
134346
+ case Vt.UploadingCodebaseToCloudStorageCompleted:
134342
134347
  return "Uploading code to cloud storage completed";
134343
- case Nt.UploadingCodebaseToCloudStorageFailed:
134348
+ case Vt.UploadingCodebaseToCloudStorageFailed:
134344
134349
  return "Uploading code to cloud storage failed";
134345
- case Nt.BillingSubscriptionUpdateFailed:
134350
+ case Vt.BillingSubscriptionUpdateFailed:
134346
134351
  return "Billing subscription update failed";
134347
- case Nt.ProjectNotFound:
134352
+ case Vt.ProjectNotFound:
134348
134353
  return "Project not found";
134349
- case Nt.HttpApiDeletionCompleted:
134354
+ case Vt.HttpApiDeletionCompleted:
134350
134355
  return "HTTP gateway deletion completed";
134351
- case Nt.HttpApiDeletionFailed:
134356
+ case Vt.HttpApiDeletionFailed:
134352
134357
  return "HTTP gateway deletion failed";
134353
- case Nt.HttpApiDeletionStarted:
134358
+ case Vt.HttpApiDeletionStarted:
134354
134359
  return "HTTP gateway deletion started";
134355
- case Nt.PublicationStepFailedReasonUnknown:
134360
+ case Vt.PublicationStepFailedReasonUnknown:
134356
134361
  return "Publication step failed: reason unknown";
134357
- case Nt.WaitingForPreviousHttpApiDeletion:
134362
+ case Vt.WaitingForPreviousHttpApiDeletion:
134358
134363
  return "Waiting for previous HTTP gateway deletion";
134359
- case Nt.RelationalDatabaseDeletionStarted:
134364
+ case Vt.RelationalDatabaseDeletionStarted:
134360
134365
  return "Database deletion started";
134361
- case Nt.RelationalDatabaseDeletionCompleted:
134366
+ case Vt.RelationalDatabaseDeletionCompleted:
134362
134367
  return "Database deletion completed";
134363
- case Nt.RelationalDatabaseDeletionFailed:
134368
+ case Vt.RelationalDatabaseDeletionFailed:
134364
134369
  return "Database deletion failed";
134365
- case Nt.WaitingForPreviousRelationalDatabaseDeletion:
134370
+ case Vt.WaitingForPreviousRelationalDatabaseDeletion:
134366
134371
  return "Waiting for previous database deletion";
134367
134372
  }
134368
134373
  return "Unknown event";
@@ -146638,7 +146643,7 @@ const Df = Jn, xR = MT, wf = n3, k = $i, so = fl, P = kA, pn = jA, BL = KA, O =
146638
146643
  // @ts-ignore
146639
146644
  type: "postgresql_operator",
146640
146645
  // @ts-ignore
146641
- operator: Vt()
146646
+ operator: _t()
146642
146647
  });
146643
146648
  }, tIe = function(t, s) {
146644
146649
  return (0, O.loc)((0, k.createPrefixOpExpr)(t, (0, P.read)(s)));
@@ -147035,7 +147040,7 @@ const Df = Jn, xR = MT, wf = n3, k = $i, so = fl, P = kA, pn = jA, BL = KA, O =
147035
147040
  }, qRe = function() {
147036
147041
  return (0, pn.hasParamType)("@`name`");
147037
147042
  }, ZRe = function() {
147038
- return (0, O.loc)({ type: "parameter", text: Vt() });
147043
+ return (0, O.loc)({ type: "parameter", text: _t() });
147039
147044
  }, HRe = function(t, s, a) {
147040
147045
  return (0, O.loc)((0, k.createParenExpr)(t, s, a));
147041
147046
  }, WRe = function(t, s, a) {
@@ -147328,31 +147333,31 @@ const Df = Jn, xR = MT, wf = n3, k = $i, so = fl, P = kA, pn = jA, BL = KA, O =
147328
147333
  }, cCe = function(t) {
147329
147334
  return (0, O.loc)((0, k.createIdentifier)(t.text, t.value));
147330
147335
  }, fCe = function(t) {
147331
- return (0, O.loc)((0, k.createIdentifier)(Vt(), t.join("")));
147336
+ return (0, O.loc)((0, k.createIdentifier)(_t(), t.join("")));
147332
147337
  }, yCe = function() {
147333
147338
  return "`";
147334
147339
  }, hCe = function(t) {
147335
- return (0, O.loc)((0, k.createIdentifier)(Vt(), t.join("")));
147340
+ return (0, O.loc)((0, k.createIdentifier)(_t(), t.join("")));
147336
147341
  }, mCe = function(t) {
147337
147342
  return (0, O.loc)({ type: "bigquery_quoted_member_expr", expr: t });
147338
147343
  }, TCe = function(t, s) {
147339
147344
  return (0, k.createMemberExprChain)(t, s);
147340
147345
  }, vCe = function() {
147341
- return (0, O.loc)((0, k.createIdentifier)(Vt(), Vt()));
147346
+ return (0, O.loc)((0, k.createIdentifier)(_t(), _t()));
147342
147347
  }, bCe = function() {
147343
147348
  return !0;
147344
147349
  }, ECe = function() {
147345
147350
  return [];
147346
147351
  }, ACe = function(t) {
147347
- return (0, O.loc)((0, k.createIdentifier)(Vt(), t.join("")));
147352
+ return (0, O.loc)((0, k.createIdentifier)(_t(), t.join("")));
147348
147353
  }, gCe = function() {
147349
147354
  return "]";
147350
147355
  }, ICe = function() {
147351
- return Vt();
147356
+ return _t();
147352
147357
  }, RCe = function() {
147353
- return Vt();
147358
+ return _t();
147354
147359
  }, DCe = function() {
147355
- return Vt();
147360
+ return _t();
147356
147361
  }, wCe = function(t) {
147357
147362
  return (0, O.loc)({
147358
147363
  // @ts-ignore
@@ -147360,7 +147365,7 @@ const Df = Jn, xR = MT, wf = n3, k = $i, so = fl, P = kA, pn = jA, BL = KA, O =
147360
147365
  // @ts-ignore
147361
147366
  name: t,
147362
147367
  // @ts-ignore
147363
- text: Vt()
147368
+ text: _t()
147364
147369
  });
147365
147370
  }, CCe = function(t) {
147366
147371
  return (0, O.loc)({
@@ -147369,7 +147374,7 @@ const Df = Jn, xR = MT, wf = n3, k = $i, so = fl, P = kA, pn = jA, BL = KA, O =
147369
147374
  // @ts-ignore
147370
147375
  name: t.name,
147371
147376
  // @ts-ignore
147372
- text: Vt()
147377
+ text: _t()
147373
147378
  });
147374
147379
  }, OCe = function(t) {
147375
147380
  return (0, O.loc)({
@@ -147378,7 +147383,7 @@ const Df = Jn, xR = MT, wf = n3, k = $i, so = fl, P = kA, pn = jA, BL = KA, O =
147378
147383
  // @ts-ignore
147379
147384
  name: t.value,
147380
147385
  // @ts-ignore
147381
- text: Vt()
147386
+ text: _t()
147382
147387
  });
147383
147388
  }, _Ce = function(t) {
147384
147389
  return (0, O.loc)({
@@ -147387,7 +147392,7 @@ const Df = Jn, xR = MT, wf = n3, k = $i, so = fl, P = kA, pn = jA, BL = KA, O =
147387
147392
  // @ts-ignore
147388
147393
  name: t,
147389
147394
  // @ts-ignore
147390
- text: Vt()
147395
+ text: _t()
147391
147396
  });
147392
147397
  }, VCe = function(t, s) {
147393
147398
  return (0, O.loc)({
@@ -147457,7 +147462,7 @@ const Df = Jn, xR = MT, wf = n3, k = $i, so = fl, P = kA, pn = jA, BL = KA, O =
147457
147462
  }, HCe = function(t) {
147458
147463
  return t;
147459
147464
  }, WCe = function() {
147460
- return Vt();
147465
+ return _t();
147461
147466
  }, zCe = function(t, s) {
147462
147467
  return (0, k.createBinaryExprChain)(t, s);
147463
147468
  }, JCe = function(t, s) {
@@ -147471,7 +147476,7 @@ const Df = Jn, xR = MT, wf = n3, k = $i, so = fl, P = kA, pn = jA, BL = KA, O =
147471
147476
  // @ts-ignore
147472
147477
  type: "string_literal",
147473
147478
  // @ts-ignore
147474
- text: Vt(),
147479
+ text: _t(),
147475
147480
  // @ts-ignore
147476
147481
  value: t.join("")
147477
147482
  });
@@ -147480,7 +147485,7 @@ const Df = Jn, xR = MT, wf = n3, k = $i, so = fl, P = kA, pn = jA, BL = KA, O =
147480
147485
  // @ts-ignore
147481
147486
  type: "string_literal",
147482
147487
  // @ts-ignore
147483
- text: Vt(),
147488
+ text: _t(),
147484
147489
  // @ts-ignore
147485
147490
  value: t.value
147486
147491
  });
@@ -147489,7 +147494,7 @@ const Df = Jn, xR = MT, wf = n3, k = $i, so = fl, P = kA, pn = jA, BL = KA, O =
147489
147494
  // @ts-ignore
147490
147495
  type: "string_literal",
147491
147496
  // @ts-ignore
147492
- text: Vt(),
147497
+ text: _t(),
147493
147498
  // @ts-ignore
147494
147499
  value: t.value
147495
147500
  });
@@ -147498,7 +147503,7 @@ const Df = Jn, xR = MT, wf = n3, k = $i, so = fl, P = kA, pn = jA, BL = KA, O =
147498
147503
  // @ts-ignore
147499
147504
  type: "string_literal",
147500
147505
  // @ts-ignore
147501
- text: Vt(),
147506
+ text: _t(),
147502
147507
  // @ts-ignore
147503
147508
  value: t.value
147504
147509
  });
@@ -147507,7 +147512,7 @@ const Df = Jn, xR = MT, wf = n3, k = $i, so = fl, P = kA, pn = jA, BL = KA, O =
147507
147512
  // @ts-ignore
147508
147513
  type: "string_literal",
147509
147514
  // @ts-ignore
147510
- text: Vt(),
147515
+ text: _t(),
147511
147516
  // @ts-ignore
147512
147517
  value: t.join("")
147513
147518
  });
@@ -147516,7 +147521,7 @@ const Df = Jn, xR = MT, wf = n3, k = $i, so = fl, P = kA, pn = jA, BL = KA, O =
147516
147521
  // @ts-ignore
147517
147522
  type: "string_literal",
147518
147523
  // @ts-ignore
147519
- text: Vt(),
147524
+ text: _t(),
147520
147525
  // @ts-ignore
147521
147526
  value: t.join("")
147522
147527
  });
@@ -147527,7 +147532,7 @@ const Df = Jn, xR = MT, wf = n3, k = $i, so = fl, P = kA, pn = jA, BL = KA, O =
147527
147532
  // @ts-ignore
147528
147533
  type: "string_literal",
147529
147534
  // @ts-ignore
147530
- text: Vt(),
147535
+ text: _t(),
147531
147536
  // @ts-ignore
147532
147537
  value: t.join("")
147533
147538
  });
@@ -147538,7 +147543,7 @@ const Df = Jn, xR = MT, wf = n3, k = $i, so = fl, P = kA, pn = jA, BL = KA, O =
147538
147543
  // @ts-ignore
147539
147544
  type: "string_literal",
147540
147545
  // @ts-ignore
147541
- text: Vt(),
147546
+ text: _t(),
147542
147547
  // @ts-ignore
147543
147548
  value: t.join("")
147544
147549
  });
@@ -147547,7 +147552,7 @@ const Df = Jn, xR = MT, wf = n3, k = $i, so = fl, P = kA, pn = jA, BL = KA, O =
147547
147552
  // @ts-ignore
147548
147553
  type: "string_literal",
147549
147554
  // @ts-ignore
147550
- text: Vt(),
147555
+ text: _t(),
147551
147556
  // @ts-ignore
147552
147557
  value: t.join("")
147553
147558
  });
@@ -147556,7 +147561,7 @@ const Df = Jn, xR = MT, wf = n3, k = $i, so = fl, P = kA, pn = jA, BL = KA, O =
147556
147561
  // @ts-ignore
147557
147562
  type: "string_literal",
147558
147563
  // @ts-ignore
147559
- text: Vt(),
147564
+ text: _t(),
147560
147565
  // @ts-ignore
147561
147566
  value: t.join("")
147562
147567
  });
@@ -147567,7 +147572,7 @@ const Df = Jn, xR = MT, wf = n3, k = $i, so = fl, P = kA, pn = jA, BL = KA, O =
147567
147572
  // @ts-ignore
147568
147573
  type: "string_literal",
147569
147574
  // @ts-ignore
147570
- text: Vt(),
147575
+ text: _t(),
147571
147576
  // @ts-ignore
147572
147577
  value: t.join("")
147573
147578
  });
@@ -147615,7 +147620,7 @@ const Df = Jn, xR = MT, wf = n3, k = $i, so = fl, P = kA, pn = jA, BL = KA, O =
147615
147620
  // @ts-ignore
147616
147621
  type: "string_literal",
147617
147622
  // @ts-ignore
147618
- text: Vt(),
147623
+ text: _t(),
147619
147624
  // @ts-ignore
147620
147625
  value: t.value
147621
147626
  });
@@ -147624,7 +147629,7 @@ const Df = Jn, xR = MT, wf = n3, k = $i, so = fl, P = kA, pn = jA, BL = KA, O =
147624
147629
  // @ts-ignore
147625
147630
  type: "string_literal",
147626
147631
  // @ts-ignore
147627
- text: Vt(),
147632
+ text: _t(),
147628
147633
  // @ts-ignore
147629
147634
  value: t
147630
147635
  });
@@ -147633,7 +147638,7 @@ const Df = Jn, xR = MT, wf = n3, k = $i, so = fl, P = kA, pn = jA, BL = KA, O =
147633
147638
  // @ts-ignore
147634
147639
  type: "blob_literal",
147635
147640
  // @ts-ignore
147636
- text: Vt(),
147641
+ text: _t(),
147637
147642
  // @ts-ignore
147638
147643
  value: (0, wf.parseTextBlob)(t)
147639
147644
  });
@@ -147650,7 +147655,7 @@ const Df = Jn, xR = MT, wf = n3, k = $i, so = fl, P = kA, pn = jA, BL = KA, O =
147650
147655
  // @ts-ignore
147651
147656
  type: "string_literal",
147652
147657
  // @ts-ignore
147653
- text: Vt(),
147658
+ text: _t(),
147654
147659
  // @ts-ignore
147655
147660
  value: t
147656
147661
  });
@@ -147663,18 +147668,18 @@ const Df = Jn, xR = MT, wf = n3, k = $i, so = fl, P = kA, pn = jA, BL = KA, O =
147663
147668
  // @ts-ignore
147664
147669
  type: "string_literal",
147665
147670
  // @ts-ignore
147666
- text: Vt(),
147671
+ text: _t(),
147667
147672
  // @ts-ignore
147668
147673
  value: s
147669
147674
  });
147670
147675
  }, KOe = function() {
147671
- return Vt();
147676
+ return _t();
147672
147677
  }, FOe = function(t) {
147673
147678
  return (0, O.loc)({
147674
147679
  // @ts-ignore
147675
147680
  type: "blob_literal",
147676
147681
  // @ts-ignore
147677
- text: Vt(),
147682
+ text: _t(),
147678
147683
  // @ts-ignore
147679
147684
  value: (0, wf.parseTextBlob)(t.value)
147680
147685
  });
@@ -147774,7 +147779,7 @@ const Df = Jn, xR = MT, wf = n3, k = $i, so = fl, P = kA, pn = jA, BL = KA, O =
147774
147779
  // @ts-ignore
147775
147780
  type: "blob_literal",
147776
147781
  // @ts-ignore
147777
- text: Vt(),
147782
+ text: _t(),
147778
147783
  // @ts-ignore
147779
147784
  value: (0, wf.parseHexBlob)(t)
147780
147785
  });
@@ -147783,7 +147788,7 @@ const Df = Jn, xR = MT, wf = n3, k = $i, so = fl, P = kA, pn = jA, BL = KA, O =
147783
147788
  // @ts-ignore
147784
147789
  type: "blob_literal",
147785
147790
  // @ts-ignore
147786
- text: Vt(),
147791
+ text: _t(),
147787
147792
  // @ts-ignore
147788
147793
  value: (0, wf.parseBitBlob)(t)
147789
147794
  });
@@ -147800,25 +147805,25 @@ const Df = Jn, xR = MT, wf = n3, k = $i, so = fl, P = kA, pn = jA, BL = KA, O =
147800
147805
  // @ts-ignore
147801
147806
  type: "number_literal",
147802
147807
  // @ts-ignore
147803
- text: Vt(),
147808
+ text: _t(),
147804
147809
  // @ts-ignore
147805
- value: parseInt(Vt().replace(/_/g, ""), 16)
147810
+ value: parseInt(_t().replace(/_/g, ""), 16)
147806
147811
  });
147807
147812
  }, p_e = function() {
147808
147813
  return (0, O.loc)({
147809
147814
  // @ts-ignore
147810
147815
  type: "number_literal",
147811
147816
  // @ts-ignore
147812
- text: Vt(),
147817
+ text: _t(),
147813
147818
  // @ts-ignore
147814
- value: parseInt(Vt(), 16)
147819
+ value: parseInt(_t(), 16)
147815
147820
  });
147816
147821
  }, c_e = function(t) {
147817
147822
  return (0, O.loc)({
147818
147823
  // @ts-ignore
147819
147824
  type: "blob_literal",
147820
147825
  // @ts-ignore
147821
- text: Vt(),
147826
+ text: _t(),
147822
147827
  // @ts-ignore
147823
147828
  value: (0, wf.parseHexBlob)(t)
147824
147829
  });
@@ -147827,7 +147832,7 @@ const Df = Jn, xR = MT, wf = n3, k = $i, so = fl, P = kA, pn = jA, BL = KA, O =
147827
147832
  // @ts-ignore
147828
147833
  type: "number_literal",
147829
147834
  // @ts-ignore
147830
- text: Vt(),
147835
+ text: _t(),
147831
147836
  // @ts-ignore
147832
147837
  value: parseInt(t.replace(/_/g, ""), 2)
147833
147838
  });
@@ -147836,7 +147841,7 @@ const Df = Jn, xR = MT, wf = n3, k = $i, so = fl, P = kA, pn = jA, BL = KA, O =
147836
147841
  // @ts-ignore
147837
147842
  type: "blob_literal",
147838
147843
  // @ts-ignore
147839
- text: Vt(),
147844
+ text: _t(),
147840
147845
  // @ts-ignore
147841
147846
  value: (0, wf.parseBitBlob)(t)
147842
147847
  });
@@ -147845,7 +147850,7 @@ const Df = Jn, xR = MT, wf = n3, k = $i, so = fl, P = kA, pn = jA, BL = KA, O =
147845
147850
  // @ts-ignore
147846
147851
  type: "number_literal",
147847
147852
  // @ts-ignore
147848
- text: Vt(),
147853
+ text: _t(),
147849
147854
  // @ts-ignore
147850
147855
  value: parseInt(t.replace(/_/g, ""), 8)
147851
147856
  });
@@ -147854,21 +147859,21 @@ const Df = Jn, xR = MT, wf = n3, k = $i, so = fl, P = kA, pn = jA, BL = KA, O =
147854
147859
  // @ts-ignore
147855
147860
  type: "number_literal",
147856
147861
  // @ts-ignore
147857
- text: Vt(),
147862
+ text: _t(),
147858
147863
  // @ts-ignore
147859
- value: parseFloat(Vt().replace(/_/g, ""))
147864
+ value: parseFloat(_t().replace(/_/g, ""))
147860
147865
  });
147861
147866
  }, T_e = function() {
147862
147867
  return (0, O.loc)({
147863
147868
  // @ts-ignore
147864
147869
  type: "number_literal",
147865
147870
  // @ts-ignore
147866
- text: Vt(),
147871
+ text: _t(),
147867
147872
  // @ts-ignore
147868
- value: parseFloat(Vt())
147873
+ value: parseFloat(_t())
147869
147874
  });
147870
147875
  }, v_e = function() {
147871
- return Vt();
147876
+ return _t();
147872
147877
  }, b_e = function(t) {
147873
147878
  return t.filter(pn.isEnabledWhitespace);
147874
147879
  }, E_e = function(t) {
@@ -147884,33 +147889,33 @@ const Df = Jn, xR = MT, wf = n3, k = $i, so = fl, P = kA, pn = jA, BL = KA, O =
147884
147889
  // @ts-ignore
147885
147890
  type: "block_comment",
147886
147891
  // @ts-ignore
147887
- text: Vt()
147892
+ text: _t()
147888
147893
  });
147889
147894
  }, D_e = function() {
147890
147895
  return (0, O.loc)({
147891
147896
  // @ts-ignore
147892
147897
  type: "block_comment",
147893
147898
  // @ts-ignore
147894
- text: Vt()
147899
+ text: _t()
147895
147900
  });
147896
147901
  }, w_e = function() {
147897
147902
  return (0, O.loc)({
147898
147903
  // @ts-ignore
147899
147904
  type: "line_comment",
147900
147905
  // @ts-ignore
147901
- text: Vt()
147906
+ text: _t()
147902
147907
  });
147903
147908
  }, C_e = function() {
147904
147909
  return (0, O.loc)({
147905
147910
  // @ts-ignore
147906
147911
  type: "line_comment",
147907
147912
  // @ts-ignore
147908
- text: Vt()
147913
+ text: _t()
147909
147914
  });
147910
147915
  }, O_e = function() {
147911
- return { type: "space", text: Vt() };
147916
+ return { type: "space", text: _t() };
147912
147917
  }, __e = function() {
147913
- return { type: "newline", text: Vt() };
147918
+ return { type: "newline", text: _t() };
147914
147919
  }, V_e = function() {
147915
147920
  return (0, pn.isBigquery)();
147916
147921
  }, N_e = function() {
@@ -147928,7 +147933,7 @@ const Df = Jn, xR = MT, wf = n3, k = $i, so = fl, P = kA, pn = jA, BL = KA, O =
147928
147933
  // @ts-ignore
147929
147934
  type: "unsupported_grammar_stmt",
147930
147935
  // @ts-ignore
147931
- text: Vt()
147936
+ text: _t()
147932
147937
  });
147933
147938
  }, M_e = function(t) {
147934
147939
  return (0, O.loc)((0, k.createKeyword)(t));
@@ -149092,7 +149097,7 @@ const Df = Jn, xR = MT, wf = n3, k = $i, so = fl, P = kA, pn = jA, BL = KA, O =
149092
149097
  throw new Error(`Can't start parsing from rule "` + c.startRule + '".');
149093
149098
  v = T[c.startRule];
149094
149099
  }
149095
- function Vt() {
149100
+ function _t() {
149096
149101
  return l.substring(R, r);
149097
149102
  }
149098
149103
  function K(t, s) {
@@ -159410,7 +159415,7 @@ const NBi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
159410
159415
  resolveAreThereConflictingColumnsInSelectAll: l3,
159411
159416
  whereStatementOperatorToSQL: o3
159412
159417
  }, Symbol.toStringTag, { value: "Module" })), f3 = (d) => d !== null && typeof d == "object";
159413
- function _t(d) {
159418
+ function Ot(d) {
159414
159419
  const p = d || "";
159415
159420
  let i = (p == null ? void 0 : p.replaceAll('""', '"').trim()) || "";
159416
159421
  return p.startsWith('"') && (i = i.slice(1)), p.endsWith('"') && (i = i.slice(0, i.length - 1)), i;
@@ -159503,18 +159508,18 @@ function m3(d) {
159503
159508
  function WO(d, p) {
159504
159509
  var i;
159505
159510
  if (d.type === "identifier") {
159506
- const n = ((i = p == null ? void 0 : p.right) == null ? void 0 : i.type) === "alias" ? p.right.alias.text : _t(d.text);
159511
+ const n = ((i = p == null ? void 0 : p.right) == null ? void 0 : i.type) === "alias" ? p.right.alias.text : Ot(d.text);
159507
159512
  return {
159508
159513
  type: "table",
159509
- name: _t(d.text),
159514
+ name: Ot(d.text),
159510
159515
  as: n
159511
159516
  };
159512
159517
  } else {
159513
159518
  if (d.type === "alias")
159514
159519
  return {
159515
159520
  type: "table",
159516
- name: d.expr.type === "identifier" ? _t(d.expr.text) : "",
159517
- as: _t(d.alias.text)
159521
+ name: d.expr.type === "identifier" ? Ot(d.expr.text) : "",
159522
+ as: Ot(d.alias.text)
159518
159523
  };
159519
159524
  if (d.type === "join_expr")
159520
159525
  return WO(d.left, d);
@@ -159532,10 +159537,10 @@ function v3(d) {
159532
159537
  if (p != null && p.name)
159533
159538
  return p;
159534
159539
  const i = m3(d);
159535
- return i && i.selectStatement && _t(i.as) ? {
159540
+ return i && i.selectStatement && Ot(i.as) ? {
159536
159541
  type: "query",
159537
159542
  subquery: i.selectStatement,
159538
- as: _t(i.as)
159543
+ as: Ot(i.as)
159539
159544
  } : null;
159540
159545
  }
159541
159546
  function zO(d) {
@@ -159548,11 +159553,11 @@ function lm(d, p = "") {
159548
159553
  const i = [];
159549
159554
  return (n = d.columns) == null || n.items.forEach((l) => {
159550
159555
  if (l.type === "alias") {
159551
- if (l.expr.type === "member_expr" && l.expr.object.type === "identifier" && (p && _t(l.expr.object.text) === p || !p)) {
159556
+ if (l.expr.type === "member_expr" && l.expr.object.type === "identifier" && (p && Ot(l.expr.object.text) === p || !p)) {
159552
159557
  let c = "", e = "";
159553
- if (l.expr.property.type === "identifier" && (e = _t(
159558
+ if (l.expr.property.type === "identifier" && (e = Ot(
159554
159559
  l.expr.property.text
159555
- )), l.alias.type === "identifier" && (c = _t(l.alias.text)), l.expr.property.text === _t(l.alias.text) || !e || !c)
159560
+ )), l.alias.type === "identifier" && (c = Ot(l.alias.text)), l.expr.property.text === Ot(l.alias.text) || !e || !c)
159556
159561
  return;
159557
159562
  i.push({
159558
159563
  from: e,
@@ -159561,7 +159566,7 @@ function lm(d, p = "") {
159561
159566
  return;
159562
159567
  } else if (l.alias.type === "identifier") {
159563
159568
  let c = "", e = "";
159564
- if (l.expr.type === "identifier" && (e = _t(l.expr.text)), l.alias.type === "identifier" && (c = _t(l.alias.text)), !e || !c)
159569
+ if (l.expr.type === "identifier" && (e = Ot(l.expr.text)), l.alias.type === "identifier" && (c = Ot(l.alias.text)), !e || !c)
159565
159570
  return;
159566
159571
  i.push({
159567
159572
  from: e,
@@ -159569,9 +159574,9 @@ function lm(d, p = "") {
159569
159574
  });
159570
159575
  return;
159571
159576
  }
159572
- } else if (l.type === "member_expr" && l.object.type === "identifier" && (p && _t(l.object.text) === p || !p)) {
159577
+ } else if (l.type === "member_expr" && l.object.type === "identifier" && (p && Ot(l.object.text) === p || !p)) {
159573
159578
  let c = "", e = "";
159574
- if (l.property.type === "identifier" && (e = _t(l.property.text), c = _t(l.property.text)), l.property.text === e || !e || !c)
159579
+ if (l.property.type === "identifier" && (e = Ot(l.property.text), c = Ot(l.property.text)), l.property.text === e || !e || !c)
159575
159580
  return;
159576
159581
  i.push({
159577
159582
  from: e,
@@ -159580,7 +159585,7 @@ function lm(d, p = "") {
159580
159585
  return;
159581
159586
  } else if (l.type === "identifier") {
159582
159587
  let c = "", e = "";
159583
- if (l.type === "identifier" && (e = _t(l.text)), l.type === "identifier" && (c = _t(l.text)), !e || !c)
159588
+ if (l.type === "identifier" && (e = Ot(l.text)), l.type === "identifier" && (c = Ot(l.text)), !e || !c)
159584
159589
  return;
159585
159590
  i.push({
159586
159591
  from: e,
@@ -159599,23 +159604,23 @@ function b3(d) {
159599
159604
  name: l.alias.text,
159600
159605
  source: null
159601
159606
  };
159602
- l.expr.type === "member_expr" && l.expr.object.type === "identifier" && (e.source = _t(
159607
+ l.expr.type === "member_expr" && l.expr.object.type === "identifier" && (e.source = Ot(
159603
159608
  l.expr.object.text
159604
159609
  )), n.columns.push(e);
159605
159610
  } else if (l.type === "member_expr")
159606
159611
  if (l.property.type === "identifier") {
159607
159612
  const c = {
159608
- name: _t(l.property.text),
159613
+ name: Ot(l.property.text),
159609
159614
  source: null
159610
159615
  };
159611
- l.object.type === "identifier" && (c.source = _t(l.object.text)), n.columns.push(c);
159616
+ l.object.type === "identifier" && (c.source = Ot(l.object.text)), n.columns.push(c);
159612
159617
  } else
159613
159618
  l.property.type === "all_columns" && l.object.type === "identifier" && n.scopedSelectAll.push(
159614
- _t(l.object.text)
159619
+ Ot(l.object.text)
159615
159620
  );
159616
159621
  else if (l.type === "identifier") {
159617
159622
  const c = {
159618
- name: _t(l.text),
159623
+ name: Ot(l.text),
159619
159624
  source: null
159620
159625
  };
159621
159626
  n.columns.push(c);
@@ -159636,13 +159641,13 @@ function E3(d) {
159636
159641
  }
159637
159642
  function A3(d) {
159638
159643
  if (d.right.type === "identifier")
159639
- return _t(d.right.text);
159644
+ return Ot(d.right.text);
159640
159645
  if (d.right.type === "alias") {
159641
159646
  const p = d.right;
159642
159647
  if (p.expr.type === "identifier")
159643
- return _t(p.expr.text);
159648
+ return Ot(p.expr.text);
159644
159649
  if (p.alias.type === "identifier")
159645
- return _t(p.alias.text);
159650
+ return Ot(p.alias.text);
159646
159651
  }
159647
159652
  return "";
159648
159653
  }
@@ -159802,10 +159807,10 @@ function uo(d, p, i, n, l = !1) {
159802
159807
  const ce = d.left;
159803
159808
  if (ce.type === "identifier") {
159804
159809
  const re = p.find(
159805
- (ye) => _t(ye.as) === _t(ce.text)
159810
+ (ye) => Ot(ye.as) === Ot(ce.text)
159806
159811
  );
159807
159812
  if (re) {
159808
- c.left = new Gi(i), c.left.source = re.source, c.left.as = _t(re.as);
159813
+ c.left = new Gi(i), c.left.source = re.source, c.left.as = Ot(re.as);
159809
159814
  const ye = new wa(i);
159810
159815
  ye.entity = ((e = re.parent) == null ? void 0 : e.entity) || null, ye.query = ((y = re.parent) == null ? void 0 : y.query) || null, ye.aggregation = ((T = re.parent) == null ? void 0 : T.aggregation) || null, ye.sourceType = ((v = re.parent) == null ? void 0 : v.sourceType) || null;
159811
159816
  const _e = i.addDataSource(ye);
@@ -159814,13 +159819,13 @@ function uo(d, p, i, n, l = !1) {
159814
159819
  } else if (ce.type === "member_expr") {
159815
159820
  if (l)
159816
159821
  debugger;
159817
- const re = ce.property.type === "identifier" ? _t(ce.property.text) : "", ye = p.find(
159818
- (_e) => _t(_e.as) === re
159822
+ const re = ce.property.type === "identifier" ? Ot(ce.property.text) : "", ye = p.find(
159823
+ (_e) => Ot(_e.as) === re
159819
159824
  );
159820
159825
  if (l)
159821
159826
  debugger;
159822
159827
  if (ye) {
159823
- c.left = new Gi(i), c.left.source = ye, c.left.as = _t(ye.as);
159828
+ c.left = new Gi(i), c.left.source = ye, c.left.as = Ot(ye.as);
159824
159829
  const _e = new wa(i);
159825
159830
  _e.entity = ((b = ye.parent) == null ? void 0 : b.entity) || null, _e.query = ((E = ye.parent) == null ? void 0 : E.query) || null, _e.aggregation = ((w = ye.parent) == null ? void 0 : w.aggregation) || null, _e.sourceType = ((_ = ye.parent) == null ? void 0 : _.sourceType) || null;
159826
159831
  const Ne = i.addDataSource(_e);
@@ -159889,10 +159894,10 @@ function uo(d, p, i, n, l = !1) {
159889
159894
  debugger;
159890
159895
  if (me.type === "identifier") {
159891
159896
  const re = p.find(
159892
- (ye) => _t(ye.as) === _t(me.text)
159897
+ (ye) => Ot(ye.as) === Ot(me.text)
159893
159898
  );
159894
159899
  if (re) {
159895
- c.right = new Gi(i), c.right.source = re, c.right.as = _t(re.as);
159900
+ c.right = new Gi(i), c.right.source = re, c.right.as = Ot(re.as);
159896
159901
  const ye = new wa(i);
159897
159902
  ye.entity = (($ = re.parent) == null ? void 0 : $.entity) || null, ye.query = ((L = re.parent) == null ? void 0 : L.query) || null, ye.aggregation = ((U = re.parent) == null ? void 0 : U.aggregation) || null, ye.sourceType = ((F = re.parent) == null ? void 0 : F.sourceType) || null;
159898
159903
  const _e = i.addDataSource(ye);
@@ -159901,13 +159906,13 @@ function uo(d, p, i, n, l = !1) {
159901
159906
  } else if (me.type === "member_expr") {
159902
159907
  if (l)
159903
159908
  debugger;
159904
- const re = me.property.type === "identifier" ? _t(me.property.text) : "", ye = p.find(
159905
- (_e) => _t(_e.as) === re
159909
+ const re = me.property.type === "identifier" ? Ot(me.property.text) : "", ye = p.find(
159910
+ (_e) => Ot(_e.as) === re
159906
159911
  );
159907
159912
  if (l)
159908
159913
  debugger;
159909
159914
  if (ye) {
159910
- c.right = new Gi(i), c.right.source = ye, c.right.as = _t(ye.as);
159915
+ c.right = new Gi(i), c.right.source = ye, c.right.as = Ot(ye.as);
159911
159916
  const _e = new wa(i);
159912
159917
  _e.entity = ((Z = ye.parent) == null ? void 0 : Z.entity) || null, _e.query = ((X = ye.parent) == null ? void 0 : X.query) || null, _e.aggregation = ((ae = ye.parent) == null ? void 0 : ae.aggregation) || null, _e.sourceType = ((Q = ye.parent) == null ? void 0 : Q.sourceType) || null;
159913
159918
  const Ne = i.addDataSource(_e);
@@ -160052,7 +160057,7 @@ function YO(d, p, i, n, l, c = {
160052
160057
  if (e)
160053
160058
  debugger;
160054
160059
  const ae = new ZO(n);
160055
- ae.as = d.right.alias.text || _t(
160060
+ ae.as = d.right.alias.text || Ot(
160056
160061
  ((L = ($ = ae.statement) == null ? void 0 : $.from) == null ? void 0 : L.as) || ""
160057
160062
  ) || null;
160058
160063
  const Q = Tm(
@@ -160065,24 +160070,24 @@ function YO(d, p, i, n, l, c = {
160065
160070
  fe.query = ae, fe.sourceType = Xo.Query;
160066
160071
  const oe = ((U = Q.state) == null ? void 0 : U.columns.map((ye) => {
160067
160072
  const _e = _.find(
160068
- (Ne) => Ne.from === _t(ye.as)
160073
+ (Ne) => Ne.from === Ot(ye.as)
160069
160074
  );
160070
160075
  return _e ? {
160071
160076
  as: _e.to,
160072
160077
  column: {
160073
- columnName: _t(ye.as),
160078
+ columnName: Ot(ye.as),
160074
160079
  property: ye.property
160075
160080
  }
160076
160081
  } : {
160077
- as: _t(ye.as),
160082
+ as: Ot(ye.as),
160078
160083
  column: {
160079
- columnName: _t(ye.as),
160084
+ columnName: Ot(ye.as),
160080
160085
  property: ye.property
160081
160086
  }
160082
160087
  };
160083
160088
  })) || [];
160084
160089
  v.push(...oe);
160085
- const ce = _t(d.right.alias.text), me = new Hb(n), re = Wb(
160090
+ const ce = Ot(d.right.alias.text), me = new Hb(n), re = Wb(
160086
160091
  d,
160087
160092
  [...fe.columns, ...i],
160088
160093
  n,
@@ -160123,7 +160128,7 @@ function YO(d, p, i, n, l, c = {
160123
160128
  if (fe.joinType = E, Object.values(Mf).includes(E)) {
160124
160129
  fe.on = oe;
160125
160130
  const ce = n.addDataSource(ae);
160126
- if (fe.dataSource = ce, fe.as = _t(
160131
+ if (fe.dataSource = ce, fe.as = Ot(
160127
160132
  d.right.alias.text
160128
160133
  ), e)
160129
160134
  debugger;
@@ -160163,7 +160168,7 @@ function YO(d, p, i, n, l, c = {
160163
160168
  );
160164
160169
  if (fe.joinType = E, Object.values(Mf).includes(E)) {
160165
160170
  const ce = n.addDataSource(ae);
160166
- if (fe.dataSource = ce, fe.on = oe, fe.as = _t(d.right.text), e)
160171
+ if (fe.dataSource = ce, fe.on = oe, fe.as = Ot(d.right.text), e)
160167
160172
  debugger;
160168
160173
  T.push(fe);
160169
160174
  }
@@ -160321,7 +160326,7 @@ function V3(d, p, i, n) {
160321
160326
  return d.specifications.items.reduce((c, e) => {
160322
160327
  var w, _;
160323
160328
  let y, T = "";
160324
- ((w = e.direction) == null ? void 0 : w.type) === "sort_direction_asc" ? y = "asc" : ((_ = e.direction) == null ? void 0 : _.type) === "sort_direction_desc" ? y = "desc" : y = "asc", e.expr.type === "member_expr" ? e.expr.property.type === "identifier" && (T += _t(e.expr.property.text)) : e.expr.type === "identifier" && (T = _t(e.expr.text));
160329
+ ((w = e.direction) == null ? void 0 : w.type) === "sort_direction_asc" ? y = "asc" : ((_ = e.direction) == null ? void 0 : _.type) === "sort_direction_desc" ? y = "desc" : y = "asc", e.expr.type === "member_expr" ? e.expr.property.type === "identifier" && (T += Ot(e.expr.property.text)) : e.expr.type === "identifier" && (T = Ot(e.expr.text));
160325
160330
  const v = new p3(n), b = n.selections.find(($) => {
160326
160331
  var L, U;
160327
160332
  if ($.type === dE.ColumnRef) {
@@ -160398,7 +160403,7 @@ function Tm(d, p, i = null, n = !1) {
160398
160403
  }
160399
160404
  } else if ((T == null ? void 0 : T.type) === "query") {
160400
160405
  const re = new ZO(c);
160401
- re.as = _t(T == null ? void 0 : T.as) || (T == null ? void 0 : T.name) || "Nested search";
160406
+ re.as = Ot(T == null ? void 0 : T.as) || (T == null ? void 0 : T.name) || "Nested search";
160402
160407
  const ye = Tm(
160403
160408
  T.subquery,
160404
160409
  p
@@ -160422,7 +160427,7 @@ function Tm(d, p, i = null, n = !1) {
160422
160427
  (T == null ? void 0 : T.name) || ""
160423
160428
  ) : [], _ = b ? lm(
160424
160429
  b,
160425
- _t(T == null ? void 0 : T.as) || ""
160430
+ Ot(T == null ? void 0 : T.as) || ""
160426
160431
  ) : [], $ = [
160427
160432
  ...w,
160428
160433
  ..._
@@ -160462,7 +160467,7 @@ function Tm(d, p, i = null, n = !1) {
160462
160467
  ...Z.columnMappings
160463
160468
  // Filter out duplicates
160464
160469
  ].filter((re, ye, _e) => _e.findIndex(
160465
- (Ne) => _t(Ne.as) === _t(re.as)
160470
+ (Ne) => Ot(Ne.as) === Ot(re.as)
160466
160471
  ) === ye);
160467
160472
  $.forEach((re) => {
160468
160473
  var Ne, Me, xe, Ge, We;
@@ -160470,7 +160475,7 @@ function Tm(d, p, i = null, n = !1) {
160470
160475
  (Fe) => Fe.as === re.from
160471
160476
  );
160472
160477
  if (_e) {
160473
- ye.source = _e, ye.as = _t(re.to);
160478
+ ye.source = _e, ye.as = Ot(re.to);
160474
160479
  const Fe = new wa(c);
160475
160480
  Fe.entity = (Me = _e.parent) == null ? void 0 : Me.entity, Fe.sourceType = ((xe = _e.parent) == null ? void 0 : xe.sourceType) || null, Fe.query = ((Ge = _e.parent) == null ? void 0 : Ge.query) || null, Fe.aggregation = ((We = _e.parent) == null ? void 0 : We.aggregation) || null;
160476
160481
  const Se = c.addDataSource(Fe);
@@ -160481,9 +160486,9 @@ function Tm(d, p, i = null, n = !1) {
160481
160486
  const _e = Z.aggregations[ye];
160482
160487
  for (let Ne = 0; Ne < _e.columns.length; Ne++) {
160483
160488
  const Me = _e.columns[Ne];
160484
- if (_t(Me.as) === re.from) {
160489
+ if (Ot(Me.as) === re.from) {
160485
160490
  const xe = new Gi(c);
160486
- xe.source = Me, xe.as = _t(re.to);
160491
+ xe.source = Me, xe.as = Ot(re.to);
160487
160492
  const Ge = new wa(c);
160488
160493
  Ge.sourceType = Xo.Aggregation, Ge.aggregation = _e;
160489
160494
  const We = c.addDataSource(Ge);
@@ -160500,7 +160505,7 @@ function Tm(d, p, i = null, n = !1) {
160500
160505
  ).forEach((re) => {
160501
160506
  c.addSelection(re);
160502
160507
  }), U == null || U.scopedSelectAll.forEach((re) => {
160503
- const ye = c.usedDataSources.find((Ne) => _t(Ne.as) === re);
160508
+ const ye = c.usedDataSources.find((Ne) => Ot(Ne.as) === re);
160504
160509
  if (!ye)
160505
160510
  return;
160506
160511
  const _e = new zf(c);
@@ -160572,7 +160577,7 @@ const PBi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
160572
160577
  hydrateSearchStatementState: Tm,
160573
160578
  loadProjectDatasources: HO,
160574
160579
  sanitizeQuery: Pf,
160575
- sanitizeSQLIdentifierText: _t
160580
+ sanitizeSQLIdentifierText: Ot
160576
160581
  }, Symbol.toStringTag, { value: "Module" }));
160577
160582
  function wG(d) {
160578
160583
  switch (d) {
@@ -195111,7 +195116,7 @@ const xZ = {
195111
195116
  }, fMi = {
195112
195117
  requestActiveDynamicValue: (d, p = !1) => null,
195113
195118
  ...xZ
195114
- }, Ot = class Ot extends $r {
195119
+ }, Nt = class Nt extends $r {
195115
195120
  constructor(i, n = {
195116
195121
  ...fMi,
195117
195122
  // Override the events with a new instance so multiple projects can coexist
@@ -195178,7 +195183,7 @@ const xZ = {
195178
195183
  I(this, "onPersistChangeSetInParallelCallback", null);
195179
195184
  I(this, "onAddChangeSetCallback", null);
195180
195185
  I(this, "onDiscardChangeSetCallback", null);
195181
- if (this.parentContext = n, this.initialData = i, this.id = i.id, this.name = i.name, this.description = i.description, this.x = 0, this.y = 0, this.instances[this.id] = this, !Ot.UUID)
195186
+ if (this.parentContext = n, this.initialData = i, this.id = i.id, this.name = i.name, this.description = i.description, this.x = 0, this.y = 0, this.instances[this.id] = this, !Nt.UUID)
195182
195187
  throw new Error(
195183
195188
  "UUID module is already initialized. Please inject a valid UUID module."
195184
195189
  );
@@ -195190,10 +195195,10 @@ const xZ = {
195190
195195
  // Creates a new empty entity transfer object
195191
195196
  static new(i = null) {
195192
195197
  return {
195193
- id: Ot.UUID.uuid(),
195194
- version: Ot.UUID.uuid(),
195198
+ id: Nt.UUID.uuid(),
195199
+ version: Nt.UUID.uuid(),
195195
195200
  createdAt: (i == null ? void 0 : i.timestamp) || G().toISOString(),
195196
- author: (i == null ? void 0 : i.author) || Ot.sessionAuthor,
195201
+ author: (i == null ? void 0 : i.author) || Nt.sessionAuthor,
195197
195202
  previousVersion: null,
195198
195203
  deleted: !1,
195199
195204
  deletable: !0,
@@ -195410,7 +195415,7 @@ const xZ = {
195410
195415
  syncDependents(i = this.project.addChangeSet(
195411
195416
  new q(
195412
195417
  this.project,
195413
- Ot.sessionAuthor,
195418
+ Nt.sessionAuthor,
195414
195419
  G().toISOString(),
195415
195420
  this,
195416
195421
  !0,
@@ -195472,14 +195477,18 @@ const xZ = {
195472
195477
  throw new Error(
195473
195478
  `The shared timestamp '${i}' is not a valid ISO 8601 date string.`
195474
195479
  );
195475
- return i && G(i).isSame(G(this.createdAt)) ? this : (this.previousVersion = this.version, this.version = Ot.UUID.uuid(), this.createdAt = G(i).toISOString() || G().toISOString(), this);
195480
+ if (i && G(i).isSame(G(this.createdAt)))
195481
+ return this;
195482
+ throw new Error(
195483
+ "Test error. Current v: " + this.version + ", prev: " + this.previousVersion + ", sharedTs: " + i
195484
+ );
195476
195485
  }
195477
195486
  // Creates a new instance of the current entity state
195478
195487
  // with all of its data and entity references
195479
195488
  // And adds it to the 'knownVersions' map
195480
195489
  captureVersion() {
195481
195490
  var n;
195482
- const i = ((n = this.knownVersions) == null ? void 0 : n.get(this.version)) || new Ot(this);
195491
+ const i = ((n = this.knownVersions) == null ? void 0 : n.get(this.version)) || new Nt(this);
195483
195492
  return i.metaSync(this.toMeta(), null), this.knownVersions = this.knownVersions ? this.knownVersions.set(this.version, i) : /* @__PURE__ */ new Map([[this.version, i]]), i.entities = [...this.entities], i.projects = [...this.projects], i.functions = [...this.functions], i.events = [...this.events], i.variableDeclarations = [...this.variableDeclarations], i.variableInstances = [...this.variableInstances], i.conditions = [...this.conditions], i.operations = [...this.operations], i.functionCalls = [...this.functionCalls], i.loops = [...this.loops], i.searches = [...this.searches], this;
195484
195493
  }
195485
195494
  // Traverses upstream entities and captures their versions as well
@@ -195539,7 +195548,7 @@ const xZ = {
195539
195548
  throw new Error(
195540
195549
  `Version with id '${i}' for entity with id '${this.id}' not found.`
195541
195550
  );
195542
- y = new Ot(v);
195551
+ y = new Nt(v);
195543
195552
  }
195544
195553
  return this.metaSync(y.toShallowJSON(), null), this.previousVersion = y.previousVersion, this.version = y.version, this.createdAt = y.createdAt, this.author = y.author, this.deleted = y.deleted, this.entities = y.entities, this.projects = y.projects, this.functions = y.functions, this.events = y.events, this.variableDeclarations = y.variableDeclarations, this.variableInstances = y.variableInstances, this.conditions = y.conditions, this.operations = y.operations, this.functionCalls = y.functionCalls, this.loops = y.loops, this.searches = y.searches, {
195545
195554
  updated: D(n),
@@ -195554,7 +195563,7 @@ const xZ = {
195554
195563
  updateWithShallowTransfer(i, n = this.project.addChangeSet(
195555
195564
  new q(
195556
195565
  this.project,
195557
- Ot.sessionAuthor,
195566
+ Nt.sessionAuthor,
195558
195567
  G().toISOString(),
195559
195568
  this,
195560
195569
  !0,
@@ -195626,7 +195635,7 @@ const xZ = {
195626
195635
  initChildren(i = this.project.addChangeSet(
195627
195636
  new q(
195628
195637
  this.project,
195629
- Ot.sessionAuthor,
195638
+ Nt.sessionAuthor,
195630
195639
  G().toISOString(),
195631
195640
  this,
195632
195641
  !0,
@@ -195748,7 +195757,7 @@ const xZ = {
195748
195757
  metaSync(i, n = this.project.addChangeSet(
195749
195758
  new q(
195750
195759
  this.project,
195751
- Ot.sessionAuthor,
195760
+ Nt.sessionAuthor,
195752
195761
  G().toISOString(),
195753
195762
  this,
195754
195763
  !0,
@@ -195759,22 +195768,22 @@ const xZ = {
195759
195768
  return this.name = l.name !== void 0 ? l.name : e.name, this.description = l.description !== void 0 ? l.description : e.description, this.x = l.x || e.x, this.y = l.y || e.y, super.baseMetaSync(l, this, n), l.deleted === !0 && !e.deleted ? n == null || n.add(this, H.Removed) : l.deleted === !1 && e.deleted ? n == null || n.add(this, H.Added) : c && (n == null || n.add(this, H.Updated)), n == null || n.attemptAutoclose("meta-sync", this.id), this;
195760
195769
  }
195761
195770
  async APILoad(i = Be, ...n) {
195762
- return await Ot.repository.APILoad(this.id, ...n), this;
195771
+ return await Nt.repository.APILoad(this.id, ...n), this;
195763
195772
  }
195764
195773
  async APICreate(i = Be, ...n) {
195765
- return await Ot.repository.APICreate(this.toShallowJSON(), ...n), this;
195774
+ return await Nt.repository.APICreate(this.toShallowJSON(), ...n), this;
195766
195775
  }
195767
195776
  async APIUpdate(i = Be, ...n) {
195768
- return await Ot.repository.APIUpdate(this.toShallowJSON(), ...n), this;
195777
+ return await Nt.repository.APIUpdate(this.toShallowJSON(), ...n), this;
195769
195778
  }
195770
195779
  async APIDelete(i = Be, ...n) {
195771
- return await Ot.repository.APIDelete(this.toShallowJSON(), ...n), this;
195780
+ return await Nt.repository.APIDelete(this.toShallowJSON(), ...n), this;
195772
195781
  }
195773
195782
  async APIClone(i = Be, ...n) {
195774
- return await Ot.repository.APIClone(this.id, ...n), this;
195783
+ return await Nt.repository.APIClone(this.id, ...n), this;
195775
195784
  }
195776
195785
  async APILoadVersion(i = Be, n, ...l) {
195777
- return await Ot.repository.APILoadVersion(
195786
+ return await Nt.repository.APILoadVersion(
195778
195787
  this.id,
195779
195788
  n,
195780
195789
  ...l
@@ -195790,7 +195799,7 @@ const xZ = {
195790
195799
  }, n = this.project.addChangeSet(
195791
195800
  new q(
195792
195801
  this.project,
195793
- Ot.sessionAuthor,
195802
+ Nt.sessionAuthor,
195794
195803
  G().toISOString(),
195795
195804
  this,
195796
195805
  !0,
@@ -195805,7 +195814,7 @@ const xZ = {
195805
195814
  restore({} = {}, i = this.project.addChangeSet(
195806
195815
  new q(
195807
195816
  this.project,
195808
- Ot.sessionAuthor,
195817
+ Nt.sessionAuthor,
195809
195818
  G().toISOString(),
195810
195819
  this,
195811
195820
  !0,
@@ -195970,7 +195979,7 @@ const xZ = {
195970
195979
  n.set(e, e);
195971
195980
  return;
195972
195981
  }
195973
- n.set(e, Ot.UUID.uuid());
195982
+ n.set(e, Nt.UUID.uuid());
195974
195983
  }), l.add(this.id), {
195975
195984
  id: n.get(this.id),
195976
195985
  version: this.version,
@@ -196077,7 +196086,7 @@ const xZ = {
196077
196086
  var l;
196078
196087
  let n = this.id;
196079
196088
  return (l = i.seenEntityMaps) != null && l.has(this.id) && (n = i.seenEntityMaps.get(this.id)), {
196080
- id: n + "--" + Ot.UUID.uuid() + "--ref",
196089
+ id: n + "--" + Nt.UUID.uuid() + "--ref",
196081
196090
  type: o.GenericReference,
196082
196091
  entityId: n,
196083
196092
  version: this.version,
@@ -196984,8 +196993,8 @@ const xZ = {
196984
196993
  };
196985
196994
  }
196986
196995
  };
196987
- I(Ot, "parentContext", xZ), I(Ot, "sessionAuthor", "1"), // User UUID of the current session author if known
196988
- I(Ot, "repository", {
196996
+ I(Nt, "parentContext", xZ), I(Nt, "sessionAuthor", "1"), // User UUID of the current session author if known
196997
+ I(Nt, "repository", {
196989
196998
  APICreate: async (i, ...n) => i,
196990
196999
  APIUpdate: async (i, ...n) => i,
196991
197000
  APIDelete: async (i, ...n) => i,
@@ -196993,42 +197002,42 @@ I(Ot, "repository", {
196993
197002
  },
196994
197003
  APILoad: async (i, ...n) => null,
196995
197004
  APILoadVersion: async (i, n, ...l) => null
196996
- }), I(Ot, "type", o.Project), I(Ot, "USER_MANAGED_PARENT_TYPES", []), I(Ot, "PARENT_TYPES", [
196997
- ...Ot.USER_MANAGED_PARENT_TYPES
196998
- ]), I(Ot, "MUTABLE_BASE_PROPERTIES", ["name", "description"]), I(Ot, "INMUTABLE_BASE_PROPERTIES", [
197005
+ }), I(Nt, "type", o.Project), I(Nt, "USER_MANAGED_PARENT_TYPES", []), I(Nt, "PARENT_TYPES", [
197006
+ ...Nt.USER_MANAGED_PARENT_TYPES
197007
+ ]), I(Nt, "MUTABLE_BASE_PROPERTIES", ["name", "description"]), I(Nt, "INMUTABLE_BASE_PROPERTIES", [
196999
197008
  "id",
197000
197009
  "type",
197001
197010
  "version",
197002
197011
  "createdAt",
197003
197012
  "author",
197004
197013
  "previousVersion"
197005
- ]), I(Ot, "BASE_PROPERTIES", [
197006
- ...Ot.MUTABLE_BASE_PROPERTIES,
197007
- ...Ot.INMUTABLE_BASE_PROPERTIES
197014
+ ]), I(Nt, "BASE_PROPERTIES", [
197015
+ ...Nt.MUTABLE_BASE_PROPERTIES,
197016
+ ...Nt.INMUTABLE_BASE_PROPERTIES
197008
197017
  ]), // Includes the base properties and the meta properties
197009
197018
  // Often contains properties related to UX, not necessary for the logic
197010
- I(Ot, "MUTABLE_META_PROPERTIES", [
197011
- ...Ot.MUTABLE_BASE_PROPERTIES,
197019
+ I(Nt, "MUTABLE_META_PROPERTIES", [
197020
+ ...Nt.MUTABLE_BASE_PROPERTIES,
197012
197021
  "x",
197013
197022
  "y"
197014
- ]), I(Ot, "INMUTABLE_META_PROPERTIES", [
197015
- ...Ot.INMUTABLE_BASE_PROPERTIES
197016
- ]), I(Ot, "META_PROPERTIES", [
197017
- ...Ot.MUTABLE_META_PROPERTIES,
197018
- ...Ot.INMUTABLE_META_PROPERTIES
197023
+ ]), I(Nt, "INMUTABLE_META_PROPERTIES", [
197024
+ ...Nt.INMUTABLE_BASE_PROPERTIES
197025
+ ]), I(Nt, "META_PROPERTIES", [
197026
+ ...Nt.MUTABLE_META_PROPERTIES,
197027
+ ...Nt.INMUTABLE_META_PROPERTIES
197019
197028
  ]), // Properties pointing to nested entities that are declared before the entity itself
197020
- I(Ot, "MUTABLE_UPSTREAM_PROPERTIES", []), I(Ot, "INMUTABLE_UPSTREAM_PROPERTIES", [
197029
+ I(Nt, "MUTABLE_UPSTREAM_PROPERTIES", []), I(Nt, "INMUTABLE_UPSTREAM_PROPERTIES", [
197021
197030
  "primitives",
197022
197031
  "builtInBaseEntities",
197023
197032
  "operationDeclarations",
197024
197033
  "globalEventActionDescriptors",
197025
197034
  "loopDeclarations",
197026
197035
  "builtInInstances"
197027
- ]), I(Ot, "UPSTREAM_PROPERTIES", [
197028
- ...Ot.MUTABLE_UPSTREAM_PROPERTIES,
197029
- ...Ot.INMUTABLE_UPSTREAM_PROPERTIES
197036
+ ]), I(Nt, "UPSTREAM_PROPERTIES", [
197037
+ ...Nt.MUTABLE_UPSTREAM_PROPERTIES,
197038
+ ...Nt.INMUTABLE_UPSTREAM_PROPERTIES
197030
197039
  ]), // Properties pointing to nested entities that are declared after the entity itself or are direct children
197031
- I(Ot, "MUTABLE_DOWNSTREAM_PROPERTIES", [
197040
+ I(Nt, "MUTABLE_DOWNSTREAM_PROPERTIES", [
197032
197041
  "entities",
197033
197042
  "projects",
197034
197043
  "functions",
@@ -197040,15 +197049,15 @@ I(Ot, "MUTABLE_DOWNSTREAM_PROPERTIES", [
197040
197049
  "functionCalls",
197041
197050
  "loops",
197042
197051
  "searches"
197043
- ]), I(Ot, "INMUTABLE_DOWNSTREAM_PROPERTIES", []), I(Ot, "DOWNSTREAM_PROPERTIES", [
197044
- ...Ot.MUTABLE_DOWNSTREAM_PROPERTIES,
197045
- ...Ot.INMUTABLE_DOWNSTREAM_PROPERTIES
197046
- ]), I(Ot, "PROPERTIES", [
197047
- ...Ot.META_PROPERTIES,
197048
- ...Ot.UPSTREAM_PROPERTIES,
197049
- ...Ot.DOWNSTREAM_PROPERTIES
197052
+ ]), I(Nt, "INMUTABLE_DOWNSTREAM_PROPERTIES", []), I(Nt, "DOWNSTREAM_PROPERTIES", [
197053
+ ...Nt.MUTABLE_DOWNSTREAM_PROPERTIES,
197054
+ ...Nt.INMUTABLE_DOWNSTREAM_PROPERTIES
197055
+ ]), I(Nt, "PROPERTIES", [
197056
+ ...Nt.META_PROPERTIES,
197057
+ ...Nt.UPSTREAM_PROPERTIES,
197058
+ ...Nt.DOWNSTREAM_PROPERTIES
197050
197059
  ]);
197051
- let x = Ot;
197060
+ let x = Nt;
197052
197061
  class yMi extends Ni {
197053
197062
  constructor(p) {
197054
197063
  super(SE, p);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elyx-code/project-logic-tree",
3
- "version": "0.0.6659",
3
+ "version": "0.0.6661",
4
4
  "author": "Sergio Herrero",
5
5
  "license": "UNLICENSED",
6
6
  "description": "An installable module which contains the type definitions and ephemeral state management for a projects' logic tree data structure",
@@ -36,7 +36,7 @@
36
36
  },
37
37
  "devDependencies": {
38
38
  "@aws-sdk/client-s3": "^3.850.0",
39
- "@elyx-code/common-ts-utils": "^0.0.118",
39
+ "@elyx-code/common-ts-utils": "^0.0.119",
40
40
  "@elyx-code/compiler": "^0.0.8014",
41
41
  "@nangohq/node": "^0.58.4",
42
42
  "@nangohq/types": "^0.58.4",
@@ -54,7 +54,7 @@
54
54
  "yaml": "^2.7.1"
55
55
  },
56
56
  "peerDependencies": {
57
- "@elyx-code/common-ts-utils": "^0.0.117",
57
+ "@elyx-code/common-ts-utils": "^0.0.119",
58
58
  "sql-parser-cst": "^0.33.1"
59
59
  },
60
60
  "peerDependenciesMeta": {