@brightspace-hmc/siren-sdk
Advanced tools
Comparing version 3.7.0 to 3.8.0
{ | ||
"name": "@brightspace-hmc/siren-sdk", | ||
"version": "3.7.0", | ||
"version": "3.8.0", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "description": "", |
@@ -98,2 +98,10 @@ import { Actions, Classes, Rels } from '../../hypermedia-constants.js'; | ||
/** | ||
* @returns {string} The registryId of the content-module (read-only) | ||
*/ | ||
registryId() { | ||
return this._entity && this._entity.properties && this._entity.properties.registryId; | ||
} | ||
/** | ||
* @returns {string} Returns the endpoint for generating a summary for the module | ||
@@ -110,2 +118,13 @@ */ | ||
/** | ||
* @returns {string} Returns the endpoint for lores for the module | ||
*/ | ||
loresEndpoint() { | ||
if (!this._entity || !this._entity.hasLinkByRel(Rels.Content.Modules.loresEndpoint)) { | ||
return; | ||
} | ||
return this._entity.getLinkByRel(Rels.Content.Modules.loresEndpoint).href; | ||
} | ||
/** | ||
* Updates the module to have the given description | ||
@@ -112,0 +131,0 @@ * @param {string} richText description to set on the module |
@@ -147,3 +147,4 @@ export const Rels = { | ||
Modules: { | ||
generateSummary: 'https://modules.api.brightspace.com/rels/generate-summary' | ||
generateSummary: 'https://modules.api.brightspace.com/rels/generate-summary', | ||
loresEndpoint: 'https://modules.api.brightspace.com/rels/lores-endpoint' | ||
} | ||
@@ -150,0 +151,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
411615
11389