-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
compose-sdk-release-bot
committed
Apr 3, 2024
1 parent
e19f63a
commit a8242d0
Showing
472 changed files
with
16,139 additions
and
1,071 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# CLI | ||
|
||
Use the Compose SDK CLI to work with your Compose SDK project. | ||
|
||
The CLI has the following commands: | ||
|
||
- [`get-data-model`](#get-data-model): Creates a [TypeScript representation of a data model](./data-model.md) | ||
- [`get-api-token`](#get-api-token): Gets an [API token for authentication](../authentication-security.md#api-token) | ||
|
||
## get-data-model | ||
|
||
The `get-data-model` command creates a [TypeScript representation of a data model](./data-model.md). Use either a username/password, API token, or WAT token to authenticate when running this command. | ||
|
||
### Options | ||
|
||
- `dataSource` - (`string`): The name of the data model to create a TypeScript representation of | ||
- `output` - (`string` | `undefined`): The `*.ts` file to write the data model file to | ||
- `password` - (`string` | `undefined`): Password when using username/password authentication (if omitted when using a username/password to authenticate, the CLI will prompt you to enter your password) | ||
- `token` - (`string` | `undefined`): API token when using API token authentication | ||
- `url` - (`string`): URL of the Sisense instance that contains your data model | ||
- `username` - (`string` | `undefined`): Username when using username/password authentication | ||
- `wat` - (`string` | `undefined`): WAT token when using WAT authentication | ||
|
||
### Example | ||
|
||
This example command creates a data model file for the Sample ECommerce data model using username/password authentication. After running this command, the CLI will prompt you for your password. (Be sure to replace `<username>` and `<your_instance_url>` with your actual username and Sisense instance URL). | ||
|
||
```sh | ||
npx @sisense/sdk-cli@latest get-data-model --dataSource "Sample ECommerce" --url <your_instance_url> --output src/sample-ecommerce.ts --username <username> | ||
``` | ||
|
||
## get-api-token | ||
|
||
The `get-api-token` command gets an [API token for authentication](../authentication-security.md#api-token). Use a username/password to authenticate when running this command. | ||
|
||
### Options | ||
|
||
- `password` - (`string` | `undefined`): Password for authentication (if omitted, the CLI will prompt you to enter your password) | ||
- `url` - (`string`): URL of the Sisense instance that your user exists in | ||
- `username` - (`string`): Username for authentication | ||
|
||
### Example | ||
|
||
This example gets an API Token using username/password authentication. After running this command, the CLI will prompt you for your password. (Be sure to replace `<username>` and `<your_instance_url>` with your actual username and Sisense instance URL). | ||
|
||
```sh | ||
npx @sisense/sdk-cli@latest get-api-token --username <username> --url <your_instance_url> | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,7 +28,7 @@ The command takes the following parameters: | |
For example, you can create a TypeScript representation of the Sample ECommerce data model like this: | ||
|
||
```sh | ||
npx @sisense/sdk-cli get-data-model --username [email protected] --output src/sample-ecommerce.ts --dataSource "Sample ECommerce" --url https://myinstanceurl.com | ||
npx @sisense/sdk-cli@latest get-data-model --username [email protected] --output src/sample-ecommerce.ts --dataSource "Sample ECommerce" --url https://myinstanceurl.com | ||
``` | ||
|
||
If prompted, enter your password to authenticate and generate the data model representation. | ||
|
@@ -115,4 +115,4 @@ const { data, isLoading, isError } = useExecuteQuery({ | |
dimensions: [DM.Commerce.AgeRange.sort(Sort.Descending)], | ||
measures: [measureFactory.sum(DM.Commerce.Revenue)], | ||
}); | ||
``` | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
title: Fusion Embed | ||
--- | ||
|
||
# Fusion Embed | ||
|
||
Fusion Dashboards, Widgets, Queries, and Formulas | ||
|
||
- [DashboardService](class.DashboardService.md) <Badge type="fusionEmbed" text="Fusion Embed" /> | ||
- [DashboardWidgetComponent](class.DashboardWidgetComponent.md) <Badge type="fusionEmbed" text="Fusion Embed" /> | ||
- [WidgetModel](class.WidgetModel.md) <Badge type="fusionEmbed" text="Fusion Embed" /> |
Oops, something went wrong.