@lightdash/cli 0.3400.0 → 0.3401.1

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 +1 @@
1
- {"version":3,"file":"apiClient.d.ts","sourceRoot":"","sources":["../../../src/handlers/dbt/apiClient.ts"],"names":[],"mappings":"AACA,OAAO,EAGH,WAAW,EAIX,WAAW,EAEX,KAAK,6BAA6B,EAGrC,MAAM,mBAAmB,CAAC;AAC3B,OAAc,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAS7C,KAAK,iBAAiB,GAAG;IACrB,MAAM,EAAE,KAAK,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAC;IACpD,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,QAAQ,GAAG,SAAS,CAAC;CAC9B,CAAC;AAKF,eAAO,MAAM,cAAc,GAAI,SAAS,OAAO,SAE9C,CAAC;AAEF,eAAO,MAAM,YAAY,GAAU,CAAC,SAAS,WAAW,CAAC,SAAS,CAAC,EAAE,wBAIlE,iBAAiB,KAAG,OAAO,CAAC,CAAC,CAqE/B,CAAC;AAEF,eAAO,MAAM,cAAc,QACb,OAAO,CAAC,6BAA6B,CAKzC,CAAC;AAEX,MAAM,MAAM,8BAA8B,GAAG;IACzC,MAAM,EAAE,OAAO,CAAC;IAChB,UAAU,EAAE,OAAO,CAAC;IACpB,YAAY,EAAE,OAAO,CAAC;IACtB,MAAM,EAAE,OAAO,CAAC;IAChB,mBAAmB,EAAE,OAAO,CAAC;IAC7B,YAAY,EAAE,OAAO,CAAC;IACtB,QAAQ,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,iCAAiC,GAC1C,aAAa,MAAM,KACpB,OAAO,CAAC,8BAA8B,CAsFxC,CAAC;AAEF,eAAO,MAAM,8BAA8B,GACvC,qBAAqB,MAAM,GAAG,SAAS,EACvC,aAAa,WAAW,KACzB,OAAO,CAAC,IAAI,C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AAO,CAAC,IAAI,CA2B1D,CAAC"}
@@ -185,6 +185,11 @@ const checkProjectCreationPermission = async (upstreamProjectUuid, projectType)
185
185
  }))) {
186
186
  return;
187
187
  }
188
+ if (!upstreamProjectUuid) {
189
+ throw new common_1.ForbiddenError(`No source project is selected. If your role allows creating previews from specific projects, that permission only applies when a source project is selected.\n` +
190
+ `Run 'lightdash config set-project' to select a source project and try again.\n` +
191
+ `If that doesn't help, contact your organization admin to request access to preview projects.`);
192
+ }
188
193
  throw new common_1.ForbiddenError(`You don't have permission to create preview projects in this organization.\n` +
189
194
  `This typically requires the 'developer' or 'admin' role.\n` +
190
195
  `Contact your organization admin to request access.`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lightdash/cli",
3
- "version": "0.3400.0",
3
+ "version": "0.3401.1",
4
4
  "description": "Lightdash CLI tool",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -41,8 +41,8 @@
41
41
  "unique-names-generator": "4.7.1",
42
42
  "uuid": "11.1.1",
43
43
  "yaml": "2.8.3",
44
- "@lightdash/common": "0.3400.0",
45
- "@lightdash/warehouses": "0.3400.0"
44
+ "@lightdash/common": "0.3401.1",
45
+ "@lightdash/warehouses": "0.3401.1"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@types/inquirer": "8.2.4",