{"_id":"@simpleview/dam-client","_rev":"40-a563f675dad1f182f3675d3c483c2aca","name":"@simpleview/dam-client","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.0":{"name":"@simpleview/dam-client","version":"1.0.0","author":{"name":"Owen Allen","email":"owenallenaz@gmail.com"},"license":"MIT","_id":"@simpleview/dam-client@1.0.0","maintainers":[{"name":"svjoshua","email":"jmoor@simpleviewinc.com"},{"name":"qman33","email":"gotshogi@gmail.com"},{"name":"seanmalbert","email":"smabert@gmail.com"},{"name":"owenallenaz","email":"owenallenaz@gmail.com"}],"homepage":"https://github.com/simpleviewinc/dam-client#readme","bugs":{"url":"https://github.com/simpleviewinc/dam-client/issues"},"dist":{"shasum":"dcc5220c9afd0106ffa259c8048913037f890857","tarball":"https://registry.npmjs.org/@simpleview/dam-client/-/dam-client-1.0.0.tgz","fileCount":8,"integrity":"sha512-HEfs4dUfrw4X32o9n+cvwXXl6D1/KtZQicqy7bnJ7pm7/tITeOmtP5yu8lQmVPP+cNfUUGwZhf5ZPCW0blCbDA==","signatures":[{"sig":"MEQCIFKwQPEHR+6XMZapYhKQZteb41tUM+jBk9XLZ3kcsOi6AiByETeDg60w/kfqqJ15XT1Z6sNSHFrC1c+e5duaxTC30g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5537,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcm+oSCRA9TVsSAnZWagAAd/MP/1xuLCmA48QBq9gWHjSX\nhf39QbylPWvGq0StkMlk5MsktjPNcBZKTzHp2lai1Sxk46V+a86oL+8KgbXU\nyx+sjHqddycTnxgm/hE4M+EgX1YpAaZiHV12V5IXjLvHfIGCAJNjiNeBOfGn\nihh+JfcQfl0nXLH43eU1XS7z9mXAIhbveFq8oC/rpwH/qdUf2bmoeK14bstw\nJFSknZO2Bcohdpn5ybJjnGm2zMr3L5p9xrJUrKzblsMTby/GIZYHuPwT3Mgt\nEVo70Sxt2X8x7bFtP7jBeWAJgCtsn2kLaUte9OLz6XhNaR8w0gun4pVl0SLM\nyl2pzHJh9Binim+2yxu3MWNmNe3iHGuswUtU/dEHJ/hMwRd2nURf3F20H2VG\nDwTgNBri0Pjq1g+smypKLhy0k8k8mPQKSOiYZ+TpU5zz3sQkbMH8i9Qwv9Hw\nLBm0r+3bhMyDeY+qWLFYooQJHmTCTwy9dY7GdSSrnuMudNBf+WCsbsYyHWWP\nlXeCnGiMrZPhE1wOOSs732w+YC8G/9VUeXJ8dCVvoCSW4LTKMomMWrDcGtl0\npA3mUcWmt8n4Wnl33A2ul4l0yDJQpkV1omaG/2AUzS2AtsYQAEjZvIf0moOR\nN+bAH1/7wI8pkO2H7LKm4ythIRliiqoxtEAtff8jcBfStmAN7ssOK/ZDjx2h\nS/Sz\r\n=Ducb\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","gitHead":"adc2a25131622b04830e820190d06a5f313e10b2","scripts":{"test":"mocha testing","docker":"./dev/build && ./dev/run || true","publish":"./dev/publish"},"_npmUser":{"name":"svjoshua","email":"jmoor@simpleviewinc.com"},"repository":{"url":"git+https://github.com/simpleviewinc/dam-client.git","type":"git"},"_npmVersion":"5.6.0","description":"Client for communicating with dam-kube","directories":{},"_nodeVersion":"8.11.3","_hasShrinkwrap":false,"devDependencies":{"mocha":"5.2.0","@simpleview/mochalib":"1.0.1","@simpleview/sv-auth-client":"1.0.10","@simpleview/sv-graphql-client":"1.0.1"},"peerDependencies":{"@simpleview/sv-graphql-client":"*"},"_npmOperationalInternal":{"tmp":"tmp/dam-client_1.0.0_1553721873991_0.19189457318713377","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"@simpleview/dam-client","version":"1.0.1","author":{"name":"Owen Allen","email":"owenallenaz@gmail.com"},"license":"MIT","_id":"@simpleview/dam-client@1.0.1","maintainers":[{"name":"owenallenaz","email":"owenallenaz@gmail.com"},{"name":"qman33","email":"gotshogi@gmail.com"},{"name":"seanmalbert","email":"smabert@gmail.com"},{"name":"svjoshua","email":"jmoor@simpleviewinc.com"}],"homepage":"https://github.com/simpleviewinc/dam-client#readme","bugs":{"url":"https://github.com/simpleviewinc/dam-client/issues"},"dist":{"shasum":"0377cde799902fb5ea75c683b0fad43f4ef1e333","tarball":"https://registry.npmjs.org/@simpleview/dam-client/-/dam-client-1.0.1.tgz","fileCount":9,"integrity":"sha512-icrXLvmVcRrkqbj6S21xo4Z9NSO6X/B6wKAwS1u8VAhAPHvZGYKyTP0nI0eVbpvJGHaGfG2Q4jMKBAOgnNQl2Q==","signatures":[{"sig":"MEUCIBMeBp+Nw0aah1Eh42w0XmL1rFYg1ftoR1ryneXfbIL6AiEAm7C6mLe8GOjIkAZZZltF9NcMkdQBIFzoj+Qeq1+WIB8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11123,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcx3/tCRA9TVsSAnZWagAAaOgP/AhAi96+Zp4UjF3UHs5b\n8fER0IHSe0UALl1DOLowYfOIElo8H5EIRiLIRoK5SZcuTG/KM9Hf6OuwAXRm\n8CeX/N9/hC28Deb9VaxjFUYE6mphRW+FIGucrRaMI8JElb4wpDXYSuA5I+nM\nTt509pkps/RNh5YzXpgX7vf4nQIM2mrjMbnEBAckTm5BnIrOczHJ3USLf5uq\nDeFl92t7dVHnklu04G1zUa/7A/8V13DAPtV1qquVXrR593hVy/bhTGAs6ud6\nH0RY63tvtBtWAB2KsQqwR0WjkM3JT2bJ92q9h9/y9VCipLZl0PQCXBSlrI8r\ne3aD+rwc23le/IopxBWJZyjw30dLZYWBXXR27RGFkpihOde9cjsTlQe08TIj\nGkP3AxGDj/EcOvgmoqeal2NvFwbx+6//ZYGlk9DCkm5JehcCRSwPbdKZTIpY\nbtImxvkdigUvGIzPiW6Z05n1FBZha30vgl15tYrik7kY8vCC5AozUsn2hRW8\nBgM8kfXKM/fis/w/JjkN7cBzTl2ib+YAEQK0hGjaOB368YOX/KdOGU0x5KNz\nT/CYbLA4XmNkFDKqgwXf9EHsWpsiri0vIlFrJ1TVSVX00AfhPlQclNaqtAsY\ngORyy5Gfyt8y+QaQ17RhMJ/pwqOhH9Qhm6jAgS4zyiyKVELCb0tUhqNiJOHl\n65WL\r\n=7TT0\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","gitHead":"b2a17c3c7e89084d455456d554d64822a8819177","scripts":{"test":"mocha testing","docker":"./dev/build && ./dev/run || true","publish":"./dev/publish"},"_npmUser":{"name":"svjoshua","email":"jmoor@simpleviewinc.com"},"repository":{"url":"git+https://github.com/simpleviewinc/dam-client.git","type":"git"},"_npmVersion":"5.6.0","description":"Client for communicating with dam-kube","directories":{},"_nodeVersion":"8.11.3","dependencies":{"axios":"0.18.0","mocha":"5.2.0","@simpleview/mochalib":"1.0.1","@simpleview/sv-auth-client":"1.0.10","@simpleview/sv-graphql-client":"1.0.1"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/dam-client_1.0.1_1556578284365_0.88875172787514","host":"s3://npm-registry-packages"}},"0.0.1":{"name":"@simpleview/dam-client","version":"0.0.1","author":{"name":"Joshua Moor","email":"jmoor@simpleviewinc.com"},"license":"MIT","_id":"@simpleview/dam-client@0.0.1","maintainers":[{"name":"owenallenaz","email":"owenallenaz@gmail.com"},{"name":"seanmalbert","email":"smabert@gmail.com"},{"name":"qman33","email":"gotshogi@gmail.com"},{"name":"svjoshua","email":"jmoor@simpleviewinc.com"},{"name":"mkes99","email":"mike@formativewebsolutions.com"},{"name":"colin.booen","email":"colin.booen@simpleviewinc.com"},{"name":"ssmith_sv","email":"sean.smith@simpleviewinc.com"}],"homepage":"https://github.com/simpleviewinc/sv-dam-client#readme","bugs":{"url":"https://github.com/simpleviewinc/sv-dam-client/issues"},"dist":{"shasum":"dc0c913f2c02ad907926ebc3c76cec58ce8c29ba","tarball":"https://registry.npmjs.org/@simpleview/dam-client/-/dam-client-0.0.1.tgz","fileCount":6,"integrity":"sha512-g5entbxpjrvRfoaEX1HB6XyNJiN+JLvhplHRBIkidB8xA6IKJ0SgUXKHOeUTPhdCH34h+a5r1JxtvZOvaj2J3g==","signatures":[{"sig":"MEUCIQCkgGqmMQ/O30Yll4B3VpI6R467HMOidS/9NizLKHs4/wIgMGVAsBySt52X9nfL9UGU+ZvepdIsgkprD3DlMw76DAk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":2558,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgW2AbCRA9TVsSAnZWagAAM0sP/1yLNcNvs3DOJcaD+1/I\nYdLmDyf3yKmzAiGqV1XDGZPvEkZcP0BB7Y3Ni26uEOTBKe1tzGewN+GOsjgC\nx8S8l0oEGSsP5JTW5d62IQoms2Mqr7QM88+WXE+rNb68P7FKyVcxRKv5SdyR\nNzeRDxXDpWlTsnvstBkkjcgDPgFS7k8IesWH33WJbkImAv066UoSy9fysmTT\nm+t91ZBNr/OK9nQiOBw8x0BifC2R8BSZ34M9jyUfHn3HdiFASs5+dPE9sC9i\nwzwZxyRbZozFmJGfJVQ9+yi6LtOtGIZsS+SZXS5vQtm9oJdhryQjpbf6DsHA\nnwYaisge2vsf7dxyjAbVoXTHIC4LvA9iiznQRlotUWGO7+V0cZSYGqkWwgqB\nYIkxH0DzvDr9lx8pRYhlrUUD9aAudi5q1JYw7zIa/4jXCGljk8wJstwsn07e\nvDvVrhK+jTeBjM0UjggfpgsiqVofkWCk8izyR1lKCyYFGyvtyA1sX3mLgj5O\nhfV+4Vvt/X1kexuAddB1mHgCfWr9jjUoXt6axXP9EU4vkwaA5xn9L9Kz4DRZ\nRIkwb5GxX0v+kM7PhYvoecx/o237OOnwfklQlbxBJTTeLJwCjZmo6493S4sZ\n3h7MlJT0KW/8FDe5SQ3xRH49EIuvjQRaoQmIG0/0fhABl1tCQ3s4hqhwr832\n791O\r\n=nr4U\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","gitHead":"43542a7ef02e489dcd66d90146b733734656e5af","scripts":{"publish":"./dev/publish"},"_npmUser":{"name":"svjoshua","email":"jmoor@simpleviewinc.com"},"repository":{"url":"git+https://github.com/simpleviewinc/sv-dam-client.git","type":"git"},"_npmVersion":"6.13.4","description":"Client for communicating with the dam","directories":{},"_nodeVersion":"12.14.1","_hasShrinkwrap":false,"peerDependencies":{"@simpleview/sv-graphql-client":"*"},"_npmOperationalInternal":{"tmp":"tmp/dam-client_0.0.1_1616601114581_0.8070361466218745","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"@simpleview/dam-client","version":"1.0.2","author":{"name":"Owen Allen","email":"owenallenaz@gmail.com"},"license":"MIT","_id":"@simpleview/dam-client@1.0.2","maintainers":[{"name":"treavorphilyaw","email":"treavor.philyaw@simpleviewinc.com"},{"name":"mauriciodeleonc","email":"mauricio.deleon@globant.com"},{"name":"mpcarolin","email":"mpcarolin.dev@gmail.com"},{"name":"csarantidessv","email":"Chris.Sarantides@simpleviewinc.com"},{"name":"mikesan789","email":"Michael.Harrington@simpleviewinc.com"},{"name":"owenallenaz","email":"owenallenaz@gmail.com"},{"name":"qman33","email":"gotshogi@gmail.com"},{"name":"svjoshua","email":"jmoor@simpleviewinc.com"},{"name":"mkes99","email":"mike@formativewebsolutions.com"},{"name":"colin.booen","email":"colin.booen@simpleviewinc.com"},{"name":"ssmith_sv","email":"sean.smith@simpleviewinc.com"},{"name":"aglazebrook","email":"aglazebrook@simpleviewinc.com"},{"name":"rmaynes","email":"rmaynes@simpleviewinc.com"}],"homepage":"https://github.com/simpleviewinc/dam-client#readme","bugs":{"url":"https://github.com/simpleviewinc/dam-client/issues"},"dist":{"shasum":"7cd84dbcc105687920650e8b145f7f651fbad9ee","tarball":"https://registry.npmjs.org/@simpleview/dam-client/-/dam-client-1.0.2.tgz","fileCount":9,"integrity":"sha512-pb99thcrGTMl5AOb7M8gaQgLQqa7hQU2DLgArx0L1rDY1qGnLvxtpcZiwjqq1zLF1RJucNCo6tJUpkMH/qw6lg==","signatures":[{"sig":"MEYCIQDbfeI5V6vTIXRvZ9novwJM8bfraIrUTB7U319qymiQrQIhANXif24IownpSIM/gZ7MzxKfIi1e8d1qtMZanVu3zXo5","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11225,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjGKRRACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoJ+A//d3DutTdwIWZz3QOznhbj1xAS78dMmjx4dya5TUk32GB/CPes\r\n+QSdKJnC+EHAug26vAoQDiLp6LUKVcQilgIUb+2g4L0sZtBNBtxDBWVZEshh\r\n5cYiq1H7BBhqoo+ChGvokI7WOD8HlzUCy0x8S/9OuU0USeHUgGAbt/MJQKUd\r\npSp1e/u+VRkmdvv7HiXvOtQT/6dvfwbzZeYI6r1u+9CVzXFAAq5GXiDxslUf\r\n+tejy6o5Q91OF36BCaYdf+ntJXxaoWELveT0/ZXqRA7+3o8cZiU5OOhZDLYE\r\n40AjQ34yEADzLm0a7LrOmuYkm3NOulrWI2uR6mIyN0Cr6Q3bzwd1F9aFfRJE\r\n3NvpglL/Z2TOE+H5Lp1bFkniUksrWzygnPFUk5P4tq0OwtGPRTvvL3ivfC50\r\nO2H31jaISE2ZLXl+2caKrVNHyhzTH2UXdQrZ4PNHHbccplh/Rz1kVSzrQCgb\r\nzLvdyQ8FltgiypuZVpv3IB+abxuLVMCSjCRjniaC6p8E/OgwU2h4o7zqbZoP\r\nGPHnT2SjSkH00K0Ts+UEXAPtvoiq733bQ/J+slxwwsTAkyMTfKOUJL72tTbg\r\niYoKYV/q/5CvmQUwGuJqoIsv30bkkAAmsX7XEiWDF+oXgCsI9Xn16kd/q57A\r\nyMRgDc9OjhRxdkFUM3mxzOZhU+E72h/6sS4=\r\n=HpVs\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","gitHead":"c0d281dbe3e222ea45daa68ad1528c01730492a9","scripts":{"test":"mocha testing","docker":"./dev/build && ./dev/run || true","publish":"./dev/publish"},"_npmUser":{"name":"aglazebrook","email":"aglazebrook@simpleviewinc.com"},"repository":{"url":"git+https://github.com/simpleviewinc/dam-client.git","type":"git"},"_npmVersion":"6.13.4","description":"Client for communicating with dam-kube","directories":{},"_nodeVersion":"12.14.1","dependencies":{"axios":"0.18.0","mocha":"5.2.0","@simpleview/mochalib":"1.0.1","@simpleview/sv-auth-client":"2.1.1","@simpleview/sv-graphql-client":"1.3.1"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/dam-client_1.0.2_1662559312867_0.6672012071690521","host":"s3://npm-registry-packages"}}},"time":{"created":"2019-03-27T21:24:33.807Z","modified":"2025-10-16T19:54:40.971Z","1.0.0":"2019-03-27T21:24:34.133Z","1.0.1":"2019-04-29T22:51:24.566Z","0.0.1":"2021-03-24T15:51:54.692Z","1.0.2":"2022-09-07T14:01:52.999Z"},"bugs":{"url":"https://github.com/simpleviewinc/dam-client/issues"},"author":{"name":"Owen Allen","email":"owenallenaz@gmail.com"},"license":"MIT","homepage":"https://github.com/simpleviewinc/dam-client#readme","repository":{"url":"git+https://github.com/simpleviewinc/dam-client.git","type":"git"},"description":"Client for communicating with dam-kube","maintainers":[{"email":"owenallenaz@gmail.com","name":"owenallenaz"},{"email":"gotshogi@gmail.com","name":"qman33"},{"email":"jmoor@simpleviewinc.com","name":"svjoshua"},{"email":"george.batt@simpleviewinc.com","name":"georgeyb-sv"},{"email":"mike@formativewebsolutions.com","name":"mkes99"},{"email":"colin.booen@simpleviewinc.com","name":"colin.booen"},{"email":"sean.smith@simpleviewinc.com","name":"ssmith_sv"},{"email":"aglazebrook@simpleviewinc.com","name":"aglazebrook"},{"email":"rmaynes@simpleviewinc.com","name":"rmaynes"},{"email":"Michael.Harrington@simpleviewinc.com","name":"mikesan789"},{"email":"Kristian.Gonzalez@simpleviewinc.com","name":"kristian.gonzalez"},{"email":"paul.riding@simpleviewinc.com","name":"paul.riding"},{"email":"amir.muntasser@simpleviewinc.com","name":"arkmuntasser"},{"email":"ed.downard@simpleviewinc.com","name":"actionawesome"},{"email":"mcutshall0@gmail.com","name":"mcutshall"},{"email":"mikael.ramirez@simpleviewinc.com","name":"sv-mikael"},{"email":"kory.chinn@simpleviewinc.com","name":"korychinn_sv"},{"email":"dan-npmjs@dlford.io","name":"dlford"},{"email":"s.loutrel@gmail.com","name":"sloutrel"}],"readme":"# dam-client\n\nDAM (Digital Asset Management) client for accessing DAM resources.\n\n* [Installation](#installation)\n* [Private Assets](#private-assets)\n* [Api](#api)\n\t* [assets](#assets)\n\t* [assets_remove](#assets_remove)\n\t* [assets_upsert](#assets_upsert)\n\t* [convertFileToFileObject](#convertfiletofileobject)\n* [GraphQL Endpoints](#graphql-endpoints)\n\t* [Query](#dam_query)\n\t\t* [Assets](#assets-1)\n\t* [Mutation](#dam_mutation)\n\t\t* [Assets_Remove](#assets_remove-1)\n\t\t* [Assets_Upsert](#assets_upsert-1)\n* [Development](#development)\n* [Additional Documentation](#additional-documentation)\n\n## Installation\n```\nnpm install @simpleview/dam-client\n```\n\n## Private Assets\nThe DAM supports the upload of private assets. As long as an asset is marked as private, it will not appear in any query unless the correct id of the asset is supplied in the query filter.\n\n## API\n\n### DamPrefix\n`DamPrefix` can be loaded into `sv-graphql-client` `GraphServer` to use as a client library for managing assets.  The DAM client requires authentication.\n\n```\nconst { GraphServer } = require(\"@simpleview/sv-graphql-client\");\nconst { AuthPrefix } = require(\"@simpleview/sv-auth-client\");\nconst { DamPrefix } = require('@simpleview/dam-client');\n\nconst prefixes = [AuthPrefix, DamPrefix];\n\nconst server = new GraphServer({ graphUrl, prefixes });\n```\n\n\n### assets\nQueries for assets allowing sorting and filtering operations.\n* filter - Requires a dam_assets_filter defining assets to return.\n* fields - Requires an object defining the GraphQL fields to be returned from graph.\n* context - Requires an object with a valid auth token and the account_id of the platform the query should be run on.\n\n#### Retrieve Private Asset\n```js\nconst supaSecretAsset = await server.dam.assets({\n\t{ filter : { id : '000000000000000000000001'} },\n\t{ `docs { asset_url }` },\n\t{ token, acct_id }\n});\n```\n\n#### Retrieve Multiple Assets\n```js\nconst assetsPage2 = await server.dam.assets({\n\t{ filter : { }, options : { limit : 5, skip : 5, sort : { field : 'file_name' dir : 'asc' } } },\n\t{ `docs { asset_url }` },\n\t{ token, acct_id }\n});\n```\n\n### assets_upsert\nAllows for creating new assets and updating existing assets. \n* input - Requires a DAM FileObject and accepts optional private boolean and id string.\n* fields - Requires an object defining the GraphQL fields to be returned from graph.\n* context - Requires an object with a valid auth token and the account_id of the platform the upsert should be run on.\n\n```js\nconst upsertResult = await server.dam.assets_upsert({\n\t{ fileObject },\n\t{ `success id` },\n\t{ token, acct_id }\n});\n```\n\n### assets_remove\nAllows for the soft delete of assets from the DAM.\n* filter - Requires a dam_assets_remove_filter defining assets to remove.\n* fields - Requires an object defining the GraphQL fields to be returned from graph.\n* context - Requires an object with a valid auth token and the account_id of the platform the remove should be run on.\n\n```js\nconst upsertResult = await server.dam.assets_remove({\n\t{ id : '000000000000000000000001' },\n\t{ `success message` },\n\t{ token, acct_id }\n});\n```\n\n### convertFileToFileObject\nConverts a browser's [File](https://developer.mozilla.org/en-US/docs/Web/API/File) into a DAM FileObject.\n* file - An object matching the Web File API.\n\n```js\nconst file = document.body.querySelector('[data-file-picker]').files[0];\nconst damFileObject = await server.dam.convertFileToFileObject({ file });\n```\n\n## GraphQL Endpoints\nThis section is provided to provide additional information about the GraphQL endpoints. To see the input parameters and output of each endpoint, please view the Schema in the GraphQL Explorer at https://graphql.simpleviewinc.com/.\n\n_All GraphQL endpoints for the DAM require an auth bearer token and an account id_\n\n### dam_query\n\n#### assets\nReturns an object containing an array of assets and a count of the assets found. Supports a filter for selecting specific assets and options for limiting the return.\n```\n{\n\tdam(acct_id: \"1\") {\n\t\tassets{ \n\t\t\tcount\n\t\t\tdocs { \n\t\t\t\tid\n\t\t\t\tasset_url\n\t\t\t}\n\t\t}\n\t}\n}\n```\n### dam_mutation\n\n#### assets_remove\nRequires a filter object and performs a soft delete on a matching assets in the system. Returns an object containing a success boolean and a message relating to the removal.\n```\nmutation {\n\tdam(acct_id: \"1\") { \n\t\tassets_remove(\n\t\t\tfilter : {\n\t\t\t\tid : \"000000000000000000000001\"\n\t\t\t}\n\t\t){\n\t\t\tsuccess\n\t\t\tmessage\n\t\t}\n\t}\n}\n```\n\n#### assets_upsert\nRequires an dam_assets_upsert object and either inserts or updates an asset based on whether or not an existing id is provided.\n```\n\tmutation {\n\tdam(acct_id: \"1\") { \n\t\tassets_upsert(\n\t\t\tinput : {\n\t\t\t\tid : \"000000000000000000000001\",\n\t\t\t\tfile_name : \"cutePuppyInPuddle.jpg\",\n\t\t\t\tfile_type : \"image\",\n\t\t\t\tcdn_id : \"dam/clients/dam/kbrid7wjepu7ljc8n3sa\" \n\t\t\t}\n\t\t){\n\t\t\tsuccess\n\t\t\tmessage\n\t\t\tdoc {\n\t\t\t\tid\n\t\t\t\tacct_id\n\t\t\t\tasset_url\n\t\t\t\tfile_name\n\t\t\t}\n\t\t}\n\t}\n}\n```\n\n## Development\n* Tests located in `dam-kube`\n* Publish - `sudo npm run publish SEMVER`\n\n\n## Additional Documentation\n* [dam-kube](https://github.com/simpleviewinc/dam-kube)\n* [sv-auth-client](https://github.com/simpleviewinc/sv-auth-client)\n* [sv-graphql-client](https://github.com/simpleviewinc/sv-graphql-client)\n","readmeFilename":"README.md"}