@514labs/moose-lib 0.6.266-ci-2-g933b2685 → 0.6.266-ci-8-ge6e86870

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.
@@ -1175,7 +1175,9 @@ var moose_internal = {
1175
1175
  apis: /* @__PURE__ */ new Map(),
1176
1176
  sqlResources: /* @__PURE__ */ new Map(),
1177
1177
  workflows: /* @__PURE__ */ new Map(),
1178
- webApps: /* @__PURE__ */ new Map()
1178
+ webApps: /* @__PURE__ */ new Map(),
1179
+ materializedViews: /* @__PURE__ */ new Map(),
1180
+ customViews: /* @__PURE__ */ new Map()
1179
1181
  };
1180
1182
  var defaultRetentionPeriod = 60 * 60 * 24 * 7;
1181
1183
  function isS3QueueConfig(config) {
@@ -1388,6 +1390,8 @@ var toInfraMap = (registry) => {
1388
1390
  const sqlResources = {};
1389
1391
  const workflows = {};
1390
1392
  const webApps = {};
1393
+ const materializedViews = {};
1394
+ const customViews = {};
1391
1395
  registry.tables.forEach((table) => {
1392
1396
  const id = table.config.version ? `${table.name}_${table.config.version}` : table.name;
1393
1397
  let metadata = table.metadata;
@@ -1578,6 +1582,24 @@ var toInfraMap = (registry) => {
1578
1582
  metadata: webApp.config.metadata
1579
1583
  };
1580
1584
  });
1585
+ registry.materializedViews.forEach((mv) => {
1586
+ materializedViews[mv.name] = {
1587
+ name: mv.name,
1588
+ selectSql: mv.selectSql,
1589
+ sourceTables: mv.sourceTables,
1590
+ targetTable: mv.targetTable.name,
1591
+ targetDatabase: mv.targetTable.config.database,
1592
+ sourceFile: mv.sourceFile
1593
+ };
1594
+ });
1595
+ registry.customViews.forEach((view) => {
1596
+ customViews[view.name] = {
1597
+ name: view.name,
1598
+ selectSql: view.selectSql,
1599
+ sourceTables: view.sourceTables,
1600
+ sourceFile: view.sourceFile
1601
+ };
1602
+ });
1581
1603
  return {
1582
1604
  topics,
1583
1605
  tables,
@@ -1585,7 +1607,9 @@ var toInfraMap = (registry) => {
1585
1607
  apis,
1586
1608
  sqlResources,
1587
1609
  workflows,
1588
- webApps
1610
+ webApps,
1611
+ materializedViews,
1612
+ customViews
1589
1613
  };
1590
1614
  };
1591
1615
  var getMooseInternal = () => globalThis.moose_internal;
@@ -1609,6 +1633,8 @@ var loadIndex = () => {
1609
1633
  registry.sqlResources.clear();
1610
1634
  registry.workflows.clear();
1611
1635
  registry.webApps.clear();
1636
+ registry.materializedViews.clear();
1637
+ registry.customViews.clear();
1612
1638
  const appDir = `${import_process.default.cwd()}/${getSourceDir()}`;
1613
1639
  Object.keys(require.cache).forEach((key) => {
1614
1640
  if (key.startsWith(appDir)) {