npm package: @simpleview/sv-dam-client
Description: Client for communicating with the dam
Author: Joshua Moor
Latest version: 0.0.25

# sv-dam-client
Client for interacting with the sv-dam/bbs-kube.

[Changelog](changelog.md) - See the latest changes to sv-dam-client.

## Installation

```
npm install @simpleview/sv-dam-client
```
## AccessGroupsPrefix

`AccessGroupsPrefix` can be loaded into the `sv-graphql-client` `GraphServer` to use as a client library for accessing `access_groups` in GraphQL.

```js
const { AccessGroupsPrefix } = require("@simpleview/sv-dam-client");
const { GraphServer } = require("@simpleview/sv-graphql-client");
const graphServer = new GraphServer({ graphUrl : GRAPH_URL, prefixes : [AccessGroupsPrefix] });
```

## AssetsPrefix

`AssetsPrefix` can be loaded into the `sv-graphql-client` `GraphServer` to use as a client library for accessing `assets` in GraphQL.

```js
const { AssetsPrefix } = require("@simpleview/sv-dam-client");
const { GraphServer } = require("@simpleview/sv-graphql-client");
const graphServer = new GraphServer({ graphUrl : GRAPH_URL, prefixes : [AssetsPrefix] });
```

## AssetTagsPrefix

`AssetTagsPrefix` can be loaded into the `sv-graphql-client` `GraphServer` to use as a client library for accessing `asset tags` in GraphQL.

```js
const { AssetTagsPrefix } = require("@simpleview/sv-dam-client");
const { GraphServer } = require("@simpleview/sv-graphql-client");
const graphServer = new GraphServer({ graphUrl : GRAPH_URL, prefixes : [AssetTagsPrefix] });
```

## CollectionsPrefix

`CollectionsPrefix` can be loaded into the `sv-graphql-client` `GraphServer` to use as a client library for accessing `collections` in GraphQL.

```js
const { CollectionsPrefix } = require("@simpleview/sv-dam-client");
const { GraphServer } = require("@simpleview/sv-graphql-client");
const graphServer = new GraphServer({ graphUrl : GRAPH_URL, prefixes : [CollectionsPrefix] });
```

## NotificationsPrefix

`NotificationsPrefix` can be loaded into the `sv-graphql-client` `GraphServer` to use as a client library for accessing `notifications` in GraphQL.

```js
const { NotificationsPrefix } = require("@simpleview/sv-dam-client");
const { GraphServer } = require("@simpleview/sv-graphql-client");
const graphServer = new GraphServer({ graphUrl : GRAPH_URL, prefixes : [NotificationsPrefix] });
```
## PlatformsPrefix

`PlatformsPrefix` can be loaded into the `sv-graphql-client` `GraphServer` to use as a client library for accessing `platforms` in GraphQL.

```js
const { PlatformsPrefix } = require("@simpleview/sv-dam-client");
const { GraphServer } = require("@simpleview/sv-graphql-client");
const graphServer = new GraphServer({ graphUrl : GRAPH_URL, prefixes : [PlatformsPrefix] });
```
## UserDownloadRequestsPrefix

`UserDownloadRequestsPrefix` can be loaded into the `sv-graphql-client` `GraphServer` to use as a client library for accessing `user_download_requests` in GraphQL.

```js
const { UserDownloadRequestsPrefix } = require("@simpleview/sv-dam-client");
const { GraphServer } = require("@simpleview/sv-graphql-client");
const graphServer = new GraphServer({ graphUrl : GRAPH_URL, prefixes : [UserDownloadRequestsPrefix] });
```

## UsersPrefix

`UsersPrefix` can be loaded into the `sv-graphql-client` `GraphServer` to use as a client library for accessing `users` in GraphQL.

```js
const { UsersPrefix } = require("@simpleview/sv-dam-client");
const { GraphServer } = require("@simpleview/sv-graphql-client");
const graphServer = new GraphServer({ graphUrl : GRAPH_URL, prefixes : [UsersPrefix] });
```
## UserUploadsPrefix

`UserUploadsPrefix` can be loaded into the `sv-graphql-client` `GraphServer` to use as a client library for accessing `user_uploads` in GraphQL.

```js
const { UserUploadsPrefix } = require("@simpleview/sv-dam-client");
const { GraphServer } = require("@simpleview/sv-graphql-client");
const graphServer = new GraphServer({ graphUrl : GRAPH_URL, prefixes : [UserUploadsPrefix] });
```

# Development
* Publish - `sudo npm run publish (after using npm login)`