@simpleview/sv-dam-client

Client for communicating with the dam

Usage no npm install needed!

<script type="module">
  import simpleviewSvDamClient from 'https://cdn.skypack.dev/@simpleview/sv-dam-client';
</script>

README

sv-dam-client

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

Changelog - 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.

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.

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.

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.

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.

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.

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.

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.

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.

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)