This is a collection of resource datasources used to access and modify giosg resources.
How to use
npm install @giosg/datasources
import Datasources from '@giosg/datasources'; const datasources = new Datasources( authorizationHeader, reportingServiceOrigin, // Optional interactionDesignerOrigin, // Optional realtimeSdk // Optional. Required for streaming. Has to be pre-connected! );
After adding new datasource you need to
npm install and reload vscode to get rid of errors!
Before publishing, remember to consider the effects your changes have for our users. See semantic versioning.
For publishing, you need access to giosg organization in npm. You can request that from one of the organization admins or request them to publish the package.
- Update CHANGELOG.md, run
npm version <patch|minor|major>and
npm run prepare, and commit.
- Create pull request.
- Request a review from another experienced developer.
- Merge the pull request after approval and passed tests.
- Pull master locally.
- Login to npm with
npm login --scope=giosg. You will be prompted for credentials.
- Publish the package with:
npm publish --access public.
--access publicflag is mandatory because organization packages default to
Remember to maintain changelog: