@lightdash/common 0.1437.1 → 0.1437.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -257,6 +257,7 @@ export declare enum DbtManifestVersion {
257
257
  V12 = "v12"
258
258
  }
259
259
  export declare const getDbtManifestVersion: (manifest: DbtManifest) => DbtManifestVersion;
260
+ export declare const getLatestSupportedDbtManifestVersion: () => DbtManifestVersion;
260
261
  export declare enum DbtExposureType {
261
262
  DASHBOARD = "dashboard",
262
263
  NOTEBOOK = "notebook",
package/dist/types/dbt.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DbtExposureType = exports.getDbtManifestVersion = exports.DbtManifestVersion = exports.convertColumnMetric = exports.convertModelMetric = exports.isDbtRpcRunSqlResults = exports.convertToGroups = exports.isDbtRpcCompileResults = exports.isDbtRpcManifestResults = exports.isSupportedDbtAdapterType = exports.isSupportedDbtAdapter = exports.isV9MetricRef = exports.isDbtPackages = exports.isDbtRpcDocsGenerateResults = exports.buildModelGraph = exports.patchPathParts = exports.normaliseModelDatabase = exports.SupportedDbtAdapter = void 0;
3
+ exports.DbtExposureType = exports.getLatestSupportedDbtManifestVersion = exports.getDbtManifestVersion = exports.DbtManifestVersion = exports.convertColumnMetric = exports.convertModelMetric = exports.isDbtRpcRunSqlResults = exports.convertToGroups = exports.isDbtRpcCompileResults = exports.isDbtRpcManifestResults = exports.isSupportedDbtAdapterType = exports.isSupportedDbtAdapter = exports.isV9MetricRef = exports.isDbtPackages = exports.isDbtRpcDocsGenerateResults = exports.buildModelGraph = exports.patchPathParts = exports.normaliseModelDatabase = exports.SupportedDbtAdapter = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const dependency_graph_1 = require("dependency-graph");
6
6
  const assertUnreachable_1 = tslib_1.__importDefault(require("../utils/assertUnreachable"));
@@ -223,6 +223,11 @@ const getDbtManifestVersion = (manifest) => {
223
223
  throw new Error(`Unsupported dbt manifest version: ${version}`);
224
224
  };
225
225
  exports.getDbtManifestVersion = getDbtManifestVersion;
226
+ const getLatestSupportedDbtManifestVersion = () => {
227
+ const versions = Object.values(DbtManifestVersion);
228
+ return versions[versions.length - 1];
229
+ };
230
+ exports.getLatestSupportedDbtManifestVersion = getLatestSupportedDbtManifestVersion;
226
231
  var DbtExposureType;
227
232
  (function (DbtExposureType) {
228
233
  DbtExposureType["DASHBOARD"] = "dashboard";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lightdash/common",
3
- "version": "0.1437.1",
3
+ "version": "0.1437.3",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [