dam-client
DAM (Digital Asset Management) client for accessing DAM resources.
Installation
npm install @simpleview/dam-client
API
DamPrefix
DamPrefix
can be loaded into sv-graphql-client
GraphServer
to use as a client library for managing assets. The DAM client requires authentication.
const { GraphServer } = require("@simpleview/sv-graphql-client");
const { AuthPrefix } = require("@simpleview/sv-auth-client");
const { DamPrefix } = require('@simpleview/dam-client');
const prefixes = [AuthPrefix, DamPrefix];
const server = new GraphServer({ graphUrl, prefixes });
assets
Queries for assets allowing sorting and filtering operations.
assets_upsert
Allows for creating new assets and updating existing assets.
assets_remove
Remove an asset by id. This does not delete the asset but rather sets a deleted
flag.
Development
- Tests located in
dam-kube
- Publish -
sudo npm run publish SEMVER
Additional Documentation
sv-auth-client
sv-graphql-client