@sisense/sdk-cli 1.33.0 → 1.34.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,6 +1,6 @@
1
+ import { trackExecution } from '../tracking.js';
1
2
  import { getHttpClient, handleHttpClientLogin } from './helpers.js';
2
3
  import { promptPasswordInteractive } from './prompts.js';
3
- import { trackExecution } from '../tracking.js';
4
4
  const command = 'get-api-token';
5
5
  const describe = 'Get an API token from the given Sisense URL using the provided credentials.';
6
6
  const builder = (yargs) => yargs
@@ -1,6 +1,6 @@
1
- import { getHttpClient, createDataModel, writeFile, handleHttpClientLogin, getFilePathInfo, isSupportedOutputFile, } from './helpers.js';
2
- import { promptPasswordInteractive } from './prompts.js';
3
1
  import { trackExecution } from '../tracking.js';
2
+ import { createDataModel, getFilePathInfo, getHttpClient, handleHttpClientLogin, isSupportedOutputFile, writeFile, } from './helpers.js';
3
+ import { promptPasswordInteractive } from './prompts.js';
4
4
  const command = 'get-data-model';
5
5
  const describe = 'Write the TypeScript or JavaScript representation of a data model from the given Sisense URL and data source';
6
6
  const builder = (yargs) => yargs
@@ -1,5 +1,5 @@
1
- import { HttpClient } from '@sisense/sdk-rest-client';
2
1
  import { DataModel, DataSourceField } from '@sisense/sdk-data';
2
+ import { HttpClient } from '@sisense/sdk-rest-client';
3
3
  import { DataSourceSchemaDataset } from '../types.js';
4
4
  declare type HttpClientConfig = {
5
5
  url: string;
@@ -39,4 +39,4 @@ declare function isSupportedOutputFile(filePathInfo: FilePathInfo): filePathInfo
39
39
  * Add 'description' property from datasource schema columns to datasource fields
40
40
  */
41
41
  export declare function addDescriptionToFields(fields: DataSourceField[], datasets: DataSourceSchemaDataset[]): DataSourceField[];
42
- export { getHttpClient, createDataModel, rewriteDataModel, writeFile, getFilePathInfo, isSupportedOutputFile, };
42
+ export { createDataModel, getFilePathInfo, getHttpClient, isSupportedOutputFile, rewriteDataModel, writeFile, };
@@ -1,11 +1,11 @@
1
- import { HttpClient, getAuthenticator, isBearerAuthenticator, isWatAuthenticator, } from '@sisense/sdk-rest-client';
2
1
  import { MetadataTypes } from '@sisense/sdk-data';
3
- import { writeTypescript, writeJavascript } from '@sisense/sdk-modeling';
4
- import path from 'path';
5
- import levenshtein from 'js-levenshtein';
2
+ import { writeJavascript, writeTypescript } from '@sisense/sdk-modeling';
6
3
  import { DimensionalQueryClient } from '@sisense/sdk-query-client';
7
- import { PKG_VERSION } from '../package-version.js';
4
+ import { getAuthenticator, HttpClient, isBearerAuthenticator, isWatAuthenticator, } from '@sisense/sdk-rest-client';
8
5
  import { trackCliError } from '@sisense/sdk-tracking';
6
+ import levenshtein from 'js-levenshtein';
7
+ import path from 'path';
8
+ import { PKG_VERSION } from '../package-version.js';
9
9
  function getHttpClient({ url, username, password, token, wat }) {
10
10
  const auth = getAuthenticator({ url, username, password, token, wat });
11
11
  if (!auth) {
@@ -239,4 +239,4 @@ export function addDescriptionToFields(fields, datasets) {
239
239
  description: schemaDataDescriptionsMap[field.table]?.[field.column] || '',
240
240
  }));
241
241
  }
242
- export { getHttpClient, createDataModel, rewriteDataModel, writeFile, getFilePathInfo, isSupportedOutputFile, };
242
+ export { createDataModel, getFilePathInfo, getHttpClient, isSupportedOutputFile, rewriteDataModel, writeFile, };
@@ -1 +1 @@
1
- export declare const PKG_VERSION = "1.33.0";
1
+ export declare const PKG_VERSION = "1.34.0";
@@ -1 +1 @@
1
- export const PKG_VERSION = "1.33.0";
1
+ export const PKG_VERSION = "1.34.0";
package/dist/run-cli.js CHANGED
@@ -2,8 +2,8 @@
2
2
  /* eslint-disable @typescript-eslint/no-unused-expressions */
3
3
  import yargs from 'yargs';
4
4
  import { hideBin } from 'yargs/helpers';
5
- import { getDataModelCommand } from './commands/get-data-model.js';
6
5
  import { getApiTokenCommand } from './commands/get-api-token.js';
6
+ import { getDataModelCommand } from './commands/get-data-model.js';
7
7
  export const runCli = () => {
8
8
  yargs(hideBin(process.argv))
9
9
  .command(getDataModelCommand)
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "Sisense",
12
12
  "Compose SDK"
13
13
  ],
14
- "version": "1.33.0",
14
+ "version": "1.34.0",
15
15
  "type": "module",
16
16
  "exports": "./dist/index.js",
17
17
  "main": "./dist/index.js",
@@ -20,12 +20,12 @@
20
20
  "license": "SEE LICENSE IN LICENSE.md",
21
21
  "bin": "./dist/index.js",
22
22
  "dependencies": {
23
- "@sisense/sdk-common": "^1.33.0",
24
- "@sisense/sdk-data": "^1.33.0",
25
- "@sisense/sdk-modeling": "^1.33.0",
26
- "@sisense/sdk-query-client": "^1.33.0",
27
- "@sisense/sdk-rest-client": "^1.33.0",
28
- "@sisense/sdk-tracking": "^1.33.0",
23
+ "@sisense/sdk-common": "^1.34.0",
24
+ "@sisense/sdk-data": "^1.34.0",
25
+ "@sisense/sdk-modeling": "^1.34.0",
26
+ "@sisense/sdk-query-client": "^1.34.0",
27
+ "@sisense/sdk-rest-client": "^1.34.0",
28
+ "@sisense/sdk-tracking": "^1.34.0",
29
29
  "cross-fetch": "^4.0.0",
30
30
  "inquirer": "^8.1.2",
31
31
  "js-levenshtein": "^1.1.6",
@@ -39,7 +39,8 @@
39
39
  "build": "run prebuild && tsc --build tsconfig.build.json",
40
40
  "build:prod": "run prebuild && tsc --project tsconfig.prod.json",
41
41
  "clean": "rm -rf dist coverage tsconfig.build.tsbuildinfo tsconfig.prod.tsbuildinfo",
42
- "lint": "eslint . --fix",
42
+ "lint": "eslint . --quiet",
43
+ "lint:fix": "run lint --fix",
43
44
  "format": "prettier --write .",
44
45
  "format:check": "prettier --check .",
45
46
  "vitest": "run -T vitest",