@lightdash/cli 0.1655.0 → 0.1656.0

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.
@@ -1,4 +1,4 @@
1
- import { ProjectType, type ApiCreateProjectResults } from '@lightdash/common';
1
+ import { CreateProjectTableConfiguration, ProjectType, type ApiCreateProjectResults } from '@lightdash/common';
2
2
  type CreateProjectOptions = {
3
3
  name: string;
4
4
  projectDir: string;
@@ -8,6 +8,7 @@ type CreateProjectOptions = {
8
8
  type: ProjectType;
9
9
  startOfWeek?: number;
10
10
  upstreamProjectUuid?: string;
11
+ tableConfiguration?: CreateProjectTableConfiguration;
11
12
  };
12
13
  export declare const createProject: (options: CreateProjectOptions) => Promise<ApiCreateProjectResults | undefined>;
13
14
  export {};
@@ -105,6 +105,7 @@ const createProject = async (options) => {
105
105
  },
106
106
  upstreamProjectUuid: options.upstreamProjectUuid,
107
107
  dbtVersion: dbtVersion.versionOption,
108
+ tableConfiguration: options.tableConfiguration,
108
109
  };
109
110
  return (0, apiClient_1.lightdashApi)({
110
111
  method: 'POST',
@@ -1,3 +1,4 @@
1
+ import { CreateProjectTableConfiguration } from '@lightdash/common';
1
2
  import { DbtCompileOptions } from './dbt/compile';
2
3
  type PreviewHandlerOptions = DbtCompileOptions & {
3
4
  projectDir: string;
@@ -8,6 +9,7 @@ type PreviewHandlerOptions = DbtCompileOptions & {
8
9
  verbose: boolean;
9
10
  startOfWeek?: number;
10
11
  ignoreErrors: boolean;
12
+ tableConfiguration: CreateProjectTableConfiguration;
11
13
  };
12
14
  type StopPreviewHandlerOptions = {
13
15
  name: string;
package/dist/index.js CHANGED
@@ -179,6 +179,7 @@ commander_1.program
179
179
  .option('--skip-warehouse-catalog', 'Skip fetch warehouse catalog and use types in yml', false)
180
180
  .option('--use-dbt-list [true|false]', 'Use `dbt list` instead of `dbt compile` to generate dbt manifest.json', parseUseDbtListOption, true)
181
181
  .option('--ignore-errors', 'Allows deploy with errors on compile', false)
182
+ .option('--table-configuration <prod|all>', `If set to 'prod' it will copy the table configuration from prod project`, 'all')
182
183
  .action(preview_1.previewHandler);
183
184
  commander_1.program
184
185
  .command('start-preview')
@@ -205,6 +206,7 @@ commander_1.program
205
206
  .option('--skip-warehouse-catalog', 'Skip fetch warehouse catalog and use types in yml', false)
206
207
  .option('--use-dbt-list [true|false]', 'Use `dbt list` instead of `dbt compile` to generate dbt manifest.json', parseUseDbtListOption, true)
207
208
  .option('--ignore-errors', 'Allows deploy with errors on compile', false)
209
+ .option('--table-configuration <prod|all>', `If set to 'prod' it will copy the table configuration from prod project`, 'all')
208
210
  .action(preview_1.startPreviewHandler);
209
211
  commander_1.program
210
212
  .command('stop-preview')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lightdash/cli",
3
- "version": "0.1655.0",
3
+ "version": "0.1656.0",
4
4
  "license": "MIT",
5
5
  "bin": {
6
6
  "lightdash": "dist/index.js"
@@ -30,8 +30,8 @@
30
30
  "parse-node-version": "^2.0.0",
31
31
  "unique-names-generator": "^4.7.1",
32
32
  "uuid": "^11.0.3",
33
- "@lightdash/common": "0.1655.0",
34
- "@lightdash/warehouses": "0.1655.0"
33
+ "@lightdash/common": "0.1656.0",
34
+ "@lightdash/warehouses": "0.1656.0"
35
35
  },
36
36
  "description": "Lightdash CLI tool",
37
37
  "devDependencies": {