@514labs/moose-lib 0.6.297-ci-30-g6530526d → 0.6.297-ci-32-g6119ebc8

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.mjs CHANGED
@@ -548,7 +548,7 @@ var init_internal = __esm({
548
548
  workflows: /* @__PURE__ */ new Map(),
549
549
  webApps: /* @__PURE__ */ new Map(),
550
550
  materializedViews: /* @__PURE__ */ new Map(),
551
- customViews: /* @__PURE__ */ new Map()
551
+ views: /* @__PURE__ */ new Map()
552
552
  };
553
553
  defaultRetentionPeriod = 60 * 60 * 24 * 7;
554
554
  getMooseInternal = () => globalThis.moose_internal;
@@ -565,7 +565,7 @@ var init_internal = __esm({
565
565
  registry.workflows.clear();
566
566
  registry.webApps.clear();
567
567
  registry.materializedViews.clear();
568
- registry.customViews.clear();
568
+ registry.views.clear();
569
569
  const appDir = `${process2.cwd()}/${getSourceDir()}`;
570
570
  Object.keys(__require.cache).forEach((key) => {
571
571
  if (key.startsWith(appDir)) {
@@ -2632,7 +2632,7 @@ var init_view = __esm({
2632
2632
  init_stackTrace();
2633
2633
  View = class {
2634
2634
  /** @internal */
2635
- kind = "CustomView";
2635
+ kind = "View";
2636
2636
  /** The name of the view */
2637
2637
  name;
2638
2638
  /** The SELECT SQL statement that defines the view */
@@ -2663,11 +2663,11 @@ var init_view = __esm({
2663
2663
  this.metadata.source = { file: sourceInfo };
2664
2664
  }
2665
2665
  }
2666
- const customViews = getMooseInternal().customViews;
2667
- if (!isClientOnlyMode() && customViews.has(this.name)) {
2666
+ const views = getMooseInternal().views;
2667
+ if (!isClientOnlyMode() && views.has(this.name)) {
2668
2668
  throw new Error(`View with name ${this.name} already exists`);
2669
2669
  }
2670
- customViews.set(this.name, this);
2670
+ views.set(this.name, this);
2671
2671
  }
2672
2672
  };
2673
2673
  }
@@ -2877,11 +2877,11 @@ function getMaterializedViews() {
2877
2877
  function getMaterializedView(name) {
2878
2878
  return getMooseInternal().materializedViews.get(name);
2879
2879
  }
2880
- function getCustomViews() {
2881
- return getMooseInternal().customViews;
2880
+ function getViews() {
2881
+ return getMooseInternal().views;
2882
2882
  }
2883
- function getCustomView(name) {
2884
- return getMooseInternal().customViews.get(name);
2883
+ function getView(name) {
2884
+ return getMooseInternal().views.get(name);
2885
2885
  }
2886
2886
  var init_registry = __esm({
2887
2887
  "src/dmv2/registry.ts"() {
@@ -3786,8 +3786,6 @@ export {
3786
3786
  getApi,
3787
3787
  getApis,
3788
3788
  getClickhouseClient,
3789
- getCustomView,
3790
- getCustomViews,
3791
3789
  getFileName,
3792
3790
  getIngestApi,
3793
3791
  getIngestApis,
@@ -3807,6 +3805,8 @@ export {
3807
3805
  getTables,
3808
3806
  getTemporalClient,
3809
3807
  getValueFromParameter,
3808
+ getView,
3809
+ getViews,
3810
3810
  getWebApp,
3811
3811
  getWebApps,
3812
3812
  getWorkflow,