@itwin/insights-client
TypeScript icon, indicating that this package has built-in type declarations

0.4.0 • Public • Published

Insights Client Library

Copyright © Bentley Systems, Incorporated. All rights reserved. See LICENSE.md for license terms and full copyright notice.

iTwin.js is an open source platform for creating, querying, modifying, and displaying Infrastructure Digital Twins. To learn more about the iTwin Platform and its APIs, visit the iTwin developer portal.

If you have questions, or wish to contribute to iTwin.js, see our Contributing guide.

About this Repository

Contains the @itwin/insights-client package that wraps sending requests to the reporting service. Visit the Insights API and Carbon calculation API for more documentation on the insights service.

Authorization for running tests

  • Create .env file and configure the following variables:
TEST_PROJECT_NAME=
TEST_IMODEL_NAME=
AUTH_AUTHORITY=
AUTH_CLIENT_ID=
AUTH_CLIENT_SECRET=
AUTH_REDIRECT_URL=
APIS_IMODELS_BASE_URL=
APIS_IMODELS_VERSION=
APIS_IMODELS_SCOPES=
APIS_PROJECTS_BASE_URL=
APIS_PROJECTS_SCOPES=
TEST_USERS_ADMIN1_EMAIL=
TEST_USERS_ADMIN1_PASSWORD=
TEST_USERS_ADMIN2_FULLY_FEATURED_EMAIL=
TEST_USERS_ADMIN2_FULLY_FEATURED_PASSWORD=
TEST_BEHAVIOR_OPTIONS_RECREATE_IMODEL=
  • Test project and imodel will be created automatically with provided names.
  • You can then run npm run test:integration.
  • There are currently no tests for oneClickLcaClient

Build Instructions

Install dependencies and build source

npm install
npm run build

Run tests

npm run test

Run linters

npm run lint

Helper files

.githooks

  • copyright-linter

    To use custom hooks, run the command:

    git config --local core.hooksPath .githooks/
    

Install

npm i @itwin/insights-client

DownloadsWeekly Downloads

443

Version

0.4.0

License

MIT

Unpacked Size

2.24 MB

Total Files

1021

Last publish

Collaborators

  • imodeljs
  • colinkerr